libcg icon indicating copy to clipboard operation
libcg copied to clipboard

Confusion

Open GooseGooseDuck198 opened this issue 1 year ago • 1 comments

I am confused with some of the syntax and wondered if you could help me out.

(I am new to this library and programming in c)

Here is my code

Screenshot 2024-01-04 10 39 25 AM Screenshot 2024-01-04 10 40 09 AM Screenshot 2024-01-04 10 40 16 AM

GooseGooseDuck198 avatar Jan 04 '24 15:01 GooseGooseDuck198

cg_rectangle doesn't draw anything. It just adds a rectangle to the 'current path'. With cg and other APIs, you add primitives to a path, THEN set a color/fill and then 'stroke' (draw the lines) or 'fill' (fill the path). Look at the examples.

buserror avatar Jan 04 '24 15:01 buserror