color for : Function Name: GRAPH_draw_line ?

All aspects of programming on the Commander X16.
Post Reply
funkheld
Posts: 322
Joined: Mon Feb 26, 2024 11:11 am

color for : Function Name: GRAPH_draw_line ?

Post 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
--------------------------
User avatar
ahenry3068
Posts: 1146
Joined: Tue Apr 04, 2023 9:57 pm

Re: color for : Function Name: GRAPH_draw_line ?

Post by ahenry3068 »

It is previously set by a call to GRAPH_set_colors ($FF29)
funkheld
Posts: 322
Joined: Mon Feb 26, 2024 11:11 am

Re: color for : Function Name: GRAPH_draw_line ?

Post by funkheld »

How many colors are available please?

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

greeting
User avatar
ahenry3068
Posts: 1146
Joined: Tue Apr 04, 2023 9:57 pm

Re: color for : Function Name: GRAPH_draw_line ?

Post by ahenry3068 »

256 (0-255)
funkheld
Posts: 322
Joined: Mon Feb 26, 2024 11:11 am

Re: color for : Function Name: GRAPH_draw_line ?

Post by funkheld »

hello thanks.

greeting.
Post Reply