Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confusion #6

Open
GooseGooseDuck198 opened this issue Jan 4, 2024 · 1 comment
Open

Confusion #6

GooseGooseDuck198 opened this issue Jan 4, 2024 · 1 comment

Comments

@GooseGooseDuck198
Copy link

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

@buserror
Copy link

buserror commented Jan 4, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants