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

Reproducing Sample Image #59

Closed
tawheeler opened this issue Jul 19, 2019 · 3 comments
Closed

Reproducing Sample Image #59

tawheeler opened this issue Jul 19, 2019 · 3 comments

Comments

@tawheeler
Copy link

tawheeler commented Jul 19, 2019

The basics.md file has an example for IJulia:

Drawing()
origin()
setopacity(0.5)
for θ in range(0, π/6, 12)
    randomhue()
    gsave()
    squircle(Point(200cos(θ), 200sin(θ)), 130, 130, :fillstroke, rt=2.5)
    grestore()
end
finish()
preview()

In order to match the output and not err out, I had to change the range call to:

for θ in range(0, stop=2π*11/12, length=12)
@cormullion
Copy link
Member

cormullion commented Jul 19, 2019

oh, yes, that’s been changing for the last few versions... What version does it fail on?

oh, it stopped working in v.1.0. Must be a relic from v0.6. Thanks!

@tawheeler
Copy link
Author

tawheeler commented Jul 19, 2019

Thanks! I am on julia 1.1.1.
Luxor is great. Just started using it.

@cormullion
Copy link
Member

Now fixed on master. Thanks for spotting this.

Who knows when a new release of Luxor will be possible... :)

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

2 participants