Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 08:58 14 Dec 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Graphic commands in XOR...

Author Message
hhtg1968
Senior Member

Joined: 25/05/2023
Location: Germany
Posts: 148
Posted: 08:28pm 12 Dec 2025
Copy link to clipboard 
Print this post

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: Australia
Posts: 1073
Posted: 02:32am 13 Dec 2025
Copy link to clipboard 
Print this post

  hhtg1968 said  is there a possibility to use line in XOR-mode?

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: Australia
Posts: 2862
Posted: 07:19am 13 Dec 2025
Copy link to clipboard 
Print this post

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: Germany
Posts: 148
Posted: 02:55pm 13 Dec 2025
Copy link to clipboard 
Print this post

  disco4now said  
  hhtg1968 said  is there a possibility to use line in XOR-mode?

I can confirm its not there. There are currently no plans to add it.
How are you using the BOX XOR_PIXELS command?


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: Germany
Posts: 148
Posted: 03:23pm 13 Dec 2025
Copy link to clipboard 
Print this post

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.
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025