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 opacity from HN dev? #3

Open
TPS opened this issue Sep 23, 2022 · 2 comments
Open

Add opacity from HN dev? #3

TPS opened this issue Sep 23, 2022 · 2 comments

Comments

@TPS
Copy link

TPS commented Sep 23, 2022

@jes An enterprising Hacker added opacity to the cars, as you requested, @ roughly https://news.ycombinator.com/item?id=32947303#32948701 (closest link I could find). Interested in updating repo w/ that?

@jes
Copy link
Owner

jes commented Sep 23, 2022

This works really well on the embedded version in my blog, but sadly the latest "real" version now uses additive blending to get a nicer lighting effect, so drawing a black circle over the top of stuff now does nothing.

We could maybe add a flag that makes it switch to alpha blending for the black circles, and then back to additive blending for the actual lights. I might play with this if the mood strikes me. For now the biggest part I don't like is how clunky the lane changes are.

@gingerbeardman
Copy link

gingerbeardman commented Sep 24, 2022

Came here to post about drawing car bodies this way (with circles or rectangles).

Lamp posts could be done similarly by drawing tall black rectangles.

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

3 participants