libcg
libcg copied to clipboard
Confusion
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
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.