Skip to content

Commit

Permalink
Draw a rectangle in the example
Browse files Browse the repository at this point in the history
  • Loading branch information
mneumann committed Feb 6, 2023
1 parent 2b658b6 commit fccc374
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions example/Main.savi
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
GL.clear(I32[0x00004000])
GL.clear_color(@r, 0.0, F32[1.0] - @r, 0.5)

GL.color4f(0.5, 0.5, 0.5, 0.5)
GL.rectf(-0.75, @r, @r, -0.75)

@r = @r + @inc
if (@r > 1.0) (
@r = 1.0
Expand Down

0 comments on commit fccc374

Please sign in to comment.