|
Forum Index : Microcontroller and PC projects : CMM2 paint program
| Author | Message | ||||
| Macer_D Newbie Joined: 25/04/2026 Location: United KingdomPosts: 5 |
Hi all, I am using my recently acquired CMM2 to create a paint program for the 12-bit graphics mode - currently am just trying to draw things to the screen. I have run into the problem of moving objects leaving behind undesired trails, and it seems that the cls function is too slow to be called every frame - Things don't render properly when I do it. What would be the best way to go about writing to and clearing from the screen? Thanks for your time. |
||||
| PhenixRising Guru Joined: 07/11/2023 Location: United KingdomPosts: 1880 |
Two possibilities: GETSCANLINE and the other is the "int" option of the MODE command. It's all in the manual. |
||||
| LeoNicolas Guru Joined: 07/10/2020 Location: CanadaPosts: 572 |
Hi If you have a limited number of things to move, you can use sprites. I use a lot of them on my game port Knightmare Another option is using multiple buffers and blit to copy data across them, and rerender only the areas of the screen that were updated, instead of using CLS and rendering the entire screen again. |
||||
| hhtg1968 Senior Member Joined: 25/05/2023 Location: GermanyPosts: 184 |
a few weeks or months ago i posted a similar problem by my paint programm. i try to find my question i sent here to the forum. i think the idea with sprites is a good idea. more to come... |
||||
| hhtg1968 Senior Member Joined: 25/05/2023 Location: GermanyPosts: 184 |
hmm. i cannot find my earlier posts... i asked dico4now and matherp. i send my source code here and a link to show the problems... then link to youtube: movies to show the problems... the code: hg.bas.zip yours heinrich |
||||
| hhtg1968 Senior Member Joined: 25/05/2023 Location: GermanyPosts: 184 |
by the way: ist there a system to find old posts? |
||||
| BarryH Newbie Joined: 05/01/2025 Location: AustraliaPosts: 34 |
@hhtg1968 To easily find your own posts, go to the MEMBERS link at the top of the page, find your username, and all your posts are listed there. BarryH |
||||
| hhtg1968 Senior Member Joined: 25/05/2023 Location: GermanyPosts: 184 |
@BarryH: many thanks. that is so easy... a link to one of my earlier posts...: earlier posts... |
||||
| phil99 Guru Joined: 11/02/2018 Location: AustraliaPosts: 3188 |
paint programm thread Found using your username and "paint programm" with the normal search button. |
||||
| hhtg1968 Senior Member Joined: 25/05/2023 Location: GermanyPosts: 184 |
@phil99: cause of using the hint from BarryH i got it. in earlier tries of searching i do not use my username and therefore to much results... thank you. |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2026 |