grol-io / grol

Go REPL Open Language
https://grol.io
Apache License 2.0
22 stars 2 forks source link

Adding vector graphics; add `atan2` as well. Fixed function caching. #219

Closed ldemailly closed 1 month ago

ldemailly commented 1 month ago

using golang.org/x/image/vector

adding

image.move_to image.line_to image.close_path image.draw

sample generates

grol

difficult part is/was what to do with alpha when adding

ldemailly commented 1 month ago

With the line with thickness demo:

grol

ldemailly commented 1 month ago

examples/disc.gr:

grol

ldemailly commented 1 month ago

circle: thickness 40

grol

thickness 1

grol

ldemailly commented 1 month ago

Random bezier points (discord.go version)

image