pixel-examples/lights
faiface b4ca4ea17d replace complex128 Vec with a struct 2017-05-21 19:25:06 +02:00
..
README.md fix screenshot in lights example readme 2017-04-14 22:41:14 +02:00
main.go replace complex128 Vec with a struct 2017-05-21 19:25:06 +02:00
noise.png add lights example 2017-04-14 22:20:12 +02:00
panda.png add lights example 2017-04-14 22:20:12 +02:00
screenshot.png update example screenshots 2017-04-24 20:07:32 +02:00

README.md

Lights

This example demonstrates powerful Porter-Duff composition used to create a nice noisy light effect.

Use W and S keys to adjust the level of "dust".

The FPS is limited to 30, because the effect is a little expensive and my computer couldn't handle 60 FPS. If you have a more powerful computer (which is quite likely), peek into the code and disable the limit.

Credit for the panda art goes to Ján Štrba.

Screenshot