[HN Gopher] Coding Curves ___________________________________________________________________ Coding Curves Author : atan2 Score : 157 points Date : 2022-11-25 16:28 UTC (6 hours ago) (HTM) web link (www.bit-101.com) (TXT) w3m dump (www.bit-101.com) | [deleted] | nuancebydefault wrote: | Nice blog! It would be awesome if the author could make the site | more interactive, for example let the viewer play with parameters | using sliders, while providing live rendering. That would be more | fun and at the same time give more insight into the algebra | behind it. It doesn't need to be super fancy, take a look at this | page: https://www.earlevel.com/main/2021/09/02/biquad- | calculator-v... | [deleted] | iKlsR wrote: | I wish he would go back to his fantastic youtube channel. I | wonder if he ever said why he stopped posting. I also | downloaded the entire thing in case it disappeared one day, | some really good stuff there... | https://www.youtube.com/@codingmath/videos | pan69 wrote: | I still have one of his books on the shelf "Foundation | ActionScript Animation: Making Things Move!". Lots of great | explainations on the math behind animation and its easy to | ignore the Flash specific stuff. | | https://www.amazon.com.au/Foundation-ActionScript- | Animation-... | | Another good book (if that's still anyone's thing) on | tweening is the freely available part Dynamic Visuals of | Robert Penner's book Programming Macromedia Flash: | | http://robertpenner.com/easing/penner_chapter7_tweening.pdf | | http://robertpenner.com/easing/ | allenrb wrote: | Any thoughts on the least intrusive yet modern simple graphics | library for Python? I've been wanting to play with some of these | things but never quite find the time/motivation to deal with the | "getting started" overhead. | Noumenon72 wrote: | Intro page needs to be more of a sales page. "This series is your | introduction to the simple equations that can produce images like | <image>, <complicated Lissajou image>, <beautiful image>, and | more!" Not "Let me start by regretting that I didn't care enough | to make this a book, and then show how to draw a straight line." | I only clicked another chapter heading because of the HN | endorsement. | vram22 wrote: | Lissajous curves have some interesting mathematical properties | [1] as well some practical applications in the physical world | (as many other mathematical concepts do). I just looked at the | Wikipedia article about them again, after some time, and found | it cool. | | https://en.m.wikipedia.org/wiki/Lissajous_curve | | I had done a good amount of elementary 2D graphics programming | earlier, on various models of computers and in a few different | programming languages, as a hobby, not for work. As part of | that tinkering, while plotting various combinations of | trigonometric expressions, one of my programs generated what | looked like a Lissajous figure, which I recognized from high | school math. Fun. | | [1] The article says that circles, ellipses, parabolas and | lines are special cases of Lissajous figures, based on the | values of the parameters in the equations. | | Oscilloscopes can be made to generate Lissajous figures based | on the inputs you give them. | [deleted] | tzarko wrote: | A similar, and fantastic resource is the book Morphing | Architecture [1]. | | A while back I made an interactive REPL for the book, building | out it's DSL, where you can play with the different examples | interactively [2]. From what I can tell, a lot of the examples | overlap. | | [1] https://www.archdaily.com/612210/morphing-mathematical- | trans... | | [2] https://morphing-architecture.onrender.com/ | Keyframe wrote: | Already an error on first page. moveTo and Line to should have i | * 10, not count * 10. | weinzierl wrote: | I'm pleasantly surprised that is actually about programming | geometric curves. This was my entry into coding as kid. | | What would be cool is to present two different ways to plot the | curves: The 'analytic' (or parametric way) and then also shader | style where you basically decide for every pixel independently if | you draw it or not. | pavlov wrote: | I think of these two methods as "inside out" vs. "outside in", | which is not very scientific but lets me visualize the | distinction: mapping the model to pixels vs. mapping the pixels | to the model. | FractalHQ wrote: | A live, interactive REPL for coding these would take a weekend to | implement and add orders of magnitude to the accessibility and UX | of this resource. | ehsankia wrote: | These look like processingjs, which has various live editors: | https://editor.p5js.org/ | [deleted] | Utrechtsaab wrote: | These are available, observable cones to mind. Why would you | build a new repl? | yarg wrote: | I messed around a bit with this sort of thing: | https://www.youtube.com/watch?v=pe4UAmb2wJw | fatneckbeardz wrote: | see also https://dwitter.net | biggerChris wrote: | The author wasn't kidding. This is literally about coding curves. | I guess a simple x^2 and the derivative of Sum isn't enough in | this day and age of programming. | ChrisMarshallNY wrote: | That looks like a cool book! | | I wish you well. | | The consumer demographic may be a bit on the sparse side, so | don't buy your yacht, just yet... ___________________________________________________________________ (page generated 2022-11-25 23:00 UTC)