Page 1 of 1

color for : Function Name: GRAPH_draw_line ?

Posted: Sun Mar 31, 2024 10:35 am
by funkheld
Hi good afternoon.

Where is the color specified please?

Thanks,
greeting

---------------------------
Function Name: GRAPH_draw_line
Signature: void GRAPH_draw_line(word x1: r0, word y1: r1, word x2: r2, word y2: r3);
Purpose: Draw a line using the stroke color
--------------------------

Re: color for : Function Name: GRAPH_draw_line ?

Posted: Sun Mar 31, 2024 11:26 am
by ahenry3068
It is previously set by a call to GRAPH_set_colors ($FF29)

Re: color for : Function Name: GRAPH_draw_line ?

Posted: Sun Mar 31, 2024 11:52 am
by funkheld
How many colors are available please?

lda ...
ldx ...
ldy ...
jsr GRPAH_set_colors

greeting

Re: color for : Function Name: GRAPH_draw_line ?

Posted: Sun Mar 31, 2024 12:00 pm
by ahenry3068
256 (0-255)

Re: color for : Function Name: GRAPH_draw_line ?

Posted: Sun Mar 31, 2024 12:46 pm
by funkheld
hello thanks.

greeting.