|
Forum Index : Microcontroller and PC projects : Graphic commands in XOR...
| Author | Message | ||||
| hhtg1968 Senior Member Joined: 25/05/2023 Location: GermanyPosts: 148 |
I try to code a simple paint-like program on my cmm2g2 (thanx to ManiB i got one). i found in the manual the command "box xor_pixels". i do not find a similar command "line xor_pixels". is there a possibility to use line in XOR-mode? |
||||
| disco4now Guru Joined: 18/12/2014 Location: AustraliaPosts: 1073 |
I can confirm its not there. There are currently no plans to add it. How are you using the BOX XOR_PIXELS command? Edited 2025-12-13 12:32 by disco4now F4 H7FotSF4xGT |
||||
| phil99 Guru Joined: 11/02/2018 Location: AustraliaPosts: 2862 |
If you only want horizontal or vertical lines with a width of at least 2 pixels a work-around might be:- > box 33,44,2,200 > box 33,44,200,2 |
||||
| hhtg1968 Senior Member Joined: 25/05/2023 Location: GermanyPosts: 148 |
In a kind of paint programm i usually program that you can click the firstpoint of a line and then you can hold the button to go to the end point during the line is drawed continously. the backgroung should not be destroyed so i use xor to show the recent line and xor again to show the original backgroung (my english is not so good). I want to draw a graphic line (or a box or a circle...) with live display, without permanently painting over or damaging the background. otherwise i had to cache the background. |
||||
| hhtg1968 Senior Member Joined: 25/05/2023 Location: GermanyPosts: 148 |
In the example image, I've circled it in red. The line with the cross isn't final yet. You can see the inversion at the intersection... ![]() because of the inversion by XOR the background is not destroyey if i draw with XOR again... this example is on my z80 computer. |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |