-
Notifications
You must be signed in to change notification settings - Fork 1
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
2D Geometry API for Draw #21
Comments
Using GeometryTypes.jl it will be possible to do: using GeometryTypes
cls(nexSerial) # default backcolor = WHITE
draw(nexSerial, LineSegment(Point(0, 0), Point(lcd_width, lcd_height)), colour)
draw(nexSerial, LineSegment(Point(0, 0), Point(lcd_width, lcd_height))) # default forecolor = BLACK |
draw(nexSerial, Rectangle(Vec(x1, y1), Vec(w, h)), color)
draw(nexSerial, Rectangle(Vec(x1, y1), Vec(w, h)), color, Background.SOLIDCOLOUR) See JuliaGeometry/GeometryTypes.jl#149 for Rectangle construction possible improvements |
draw(nexSerial, Picture(picid), Point(x, y))
draw(nexSerial, Picture(picid), Rectangle(x, y, w, h))
draw(nexSerial, Picture(picid), Rectangle(x, y, w, h), Point(x0, y0)) |
draw(nexSerial, Circle(Point(0, 0), 20), color)
draw(nexSerial, Circle(Point(0, 0), 20), color, Background.SOLIDCOLOUR) |
draw(nexSerial, "Hello", Rectangle(x, y, w, h), font, fontcolor, backcolor, xcenter, ycenter, sta) ToDo:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
An API to store x, y as
UInt16
whatever coordinate type is givenCould help for REPL (to avoid changing type)
NexPoint
orNxPoint (x y)
NxSize (w h)
Point{2, UInt16}()
The text was updated successfully, but these errors were encountered: