News for hackers. Stuff that matters.
Re:Computer Graphics from Scratch by davidwf on Wednesday February 03, 2021 @09:52PM (#26022028)
I have to say this looks really cool.

Maybe this is a really dumb question, but as someone who really knows nothing about computer graphics, how can you actually run these examples?

I realize that I could Google and research and find a list of "canvas drawing tools" in a variety of languages that I could then evaluate (despite, again, knowing nothing about graphics), but it'd be SUPER-SUPER-awesome to have a quick note "there are lots of ways to go about making these things happen in the real world, but here's one I recommend if you have no other priors." :-)

Really cool book idea, keen to have a go at it!

Re:Computer Graphics from Scratch by cravay on Thursday February 04, 2021 @12:48AM (#26022996)
The demos run live in the browser. You can download and edit them. The code is pretty straightforward and well commented.
Re:Computer Graphics from Scratch by davidwf on Thursday February 04, 2021 @02:49AM (#26023496)
Wow thank you! I totally missed the "Source code and live demo" button during my first cursory glance through the chapters, but indeed, there it is. :-)
Re:Computer Graphics from Scratch by aspaceman on Wednesday February 03, 2021 @10:06PM (#26022123)
HTML5 Canvas is probably the easiest to get going with some Javascript.

Python has PyGame, or you could just plot to PNGs.

Java awt has a canvas.

C/C++ has SDL/SFML or also plotting to PNGs (or if you want to go wild, embedded GPUs are an option).

You could also do all of this in BASIC if you write the canvas commands. All of this is doable on a Commodore in software albeit slowly.

Re:Computer Graphics from Scratch by ggambetta on Thursday February 04, 2021 @03:08AM (#26023606)
Here's one of the demos, running right inside your browser: https://gabrielgambetta.com/computer-graphics-from-scratch/d... If you right-click-view-source, you can see the whole JavaScript implementation right there.

This might be the easiest way - make a trivial HTML page with a <canvas> tag and start setting pixel colors in it :)