QB64.com

QB64 is a modern extended BASIC programming language that retains QBasic/QuickBASIC 4.5 compatibility and compiles native binaries for Windows, Linux, and macOS.

HomeNewsGitHubWikiSamplesInFormGXQBjsCommunityMore…

SAMPLE: LENS SIMULATOR

ss1.png

Author

🐝 STxAxTIC

Description

This program simulates light rays passing through a lens with a given index of refraction and concavity. The bent rays emerge to collide with a target (of fixed shape) or pass it by.

QBjs

Please note that QBjs is still in early development and support for these examples is extremely experimental (meaning will most likely not work). With that out of the way, give it a try!

File(s)

Additional Image(s)

ss2.png

🔗 2d, ray tracer