Skip to content

Commit

Permalink
Add the simple elements.
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Corry committed Dec 4, 2023
1 parent 6830c36 commit 20e353f
Show file tree
Hide file tree
Showing 31 changed files with 1,077 additions and 15 deletions.
5 changes: 5 additions & 0 deletions src/common.toit
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ abstract class Canvas:

abstract composit frame_opacity frame_canvas/Canvas painting_opacity painting_canvas/Canvas

abstract rectangle x/int y/int --w/int --h/int --color/int -> none

abstract text x/int y/int --text/string --color/int --font/Font --orientation/int
abstract text x/int y/int --text/string --color/int --font/Font

TRANSFORM_IDENTITY_ ::= Transform.with_ [1, 0, 0, 1, 0, 0]
TRANSFORM_90_ ::= Transform.with_ [0, -1, 1, 0, 0, 0]
TRANSFORM_180_ ::= Transform.with_ [-1, 0, 0, -1, 0, 0]
Expand Down
Loading

0 comments on commit 20e353f

Please sign in to comment.