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

Add draw to image operations, possibly as environment. #120

Open
foresterre opened this issue Jul 6, 2019 · 1 comment
Open

Add draw to image operations, possibly as environment. #120

foresterre opened this issue Jul 6, 2019 · 1 comment

Comments

@foresterre
Copy link
Owner

foresterre commented Jul 6, 2019

Playground:

# begin := start a scoped environment
# end := end the scoped environment
# 
# initially only in the root (i.e. no true scoping)
begin draw:
  # commands only valid within the draw environment
  move-cursor 100 200;
  color #fff000;
  cursor-down;
  step 100 north;
  rect <...>
  quad <...>
end;

  • internal name: Statement::Scope?

inspiration:
processing

@foresterre foresterre changed the title Add draw image operation. Add draw to image operations, possibly as environment. Jul 6, 2019
@foresterre
Copy link
Owner Author

foresterre commented Aug 22, 2019

The imageproc crate already has many drawing functions built-in:

Relevant for #99

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

1 participant