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

Content proposal: Hours of Dark #31

Open
brunoimbrizi opened this issue May 13, 2021 · 7 comments
Open

Content proposal: Hours of Dark #31

brunoimbrizi opened this issue May 13, 2021 · 7 comments

Comments

@brunoimbrizi
Copy link
Contributor

Hi Tim,

This is a great project! The tutorials look great and I happily recommend them to anyone asks me about getting started on creative coding.

I would like to know if you'd be interested in a contribution to the tutorial section showing how to recreate Accept & Proceed's Hours of Dark 2011. It's pure canvas 2D, black on white and ~60 lines of code, so it should be in tune with the other tutorials.

I read the other thread with @maxwellito and the process is clear to me. If you think this would be interesting I can send a PR soon.

Cheers,
Bruno

@brunoimbrizi
Copy link
Contributor Author

Here is the first draft (just the code, no copy yet) and what the result looks like.

@tholman
Copy link
Owner

tholman commented May 13, 2021 via email

@brunoimbrizi
Copy link
Contributor Author

I'm very glad you liked the proposal. I worked on the copy this morning and made a few minor tweaks to the code. Pull request sent. Please feel free to edit the copy or ask me anything in case things aren't clear.

@tholman
Copy link
Owner

tholman commented May 14, 2021

You absolutely nailed this! Succinct and beautiful!

@tholman
Copy link
Owner

tholman commented May 14, 2021

Ahh, perhaps a little offset bug in the live rendering at the end there, will try to debug at lunch! Either way, so good!
Screen Shot 2021-05-14 at 10 46 20 AM

@brunoimbrizi
Copy link
Contributor Author

Ahh, no! I wonder if the issue is related to retina screens. It was (and still is) working fine on Windows non-retina modern browsers. I'll try to find the cause here as well.

@brunoimbrizi
Copy link
Contributor Author

Found it. I should use size instead of canvas.width or canvas.height. Both are the same on non-retina screens, so I didn't notice the issue. Fixed and PR coming.

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