So the first DRAWn x, y co-ordinates are; -0.58r, r/0.555' ... The same method is then repeated a further four times to draw the line for each side of the pentagram.
10 August 2022
Pentagram - as an 8-bit scalable vector (again)
06 March 2022
Pentagram - as an 8-bit scalable vector
When you want to summon a demon, but he demon is fussy about the precision of your pentagram! 😉 Drawing an inverted pentagram on a ZX Sprectrum as a scalable vector 'graphic' using the PLOT and DRAW commands. The idea is to denote the centre of the pentagram / circle as x, y co-ordinates (in pixels) represented with the variables x and y, and the radius (also in pixels) and represented with the variable r. Changing the x, y starting position and/or the radius (r) will redraw the pentagram according to the new values. To do this, each point on the pentagram, and hence each line can be represented as vectors.
So the first DRAWn x, y co-ordinates are; -0.58r, r/0.555'
The same method is then repeated for a further four times for each side / point of the pentagram.
01 March 2022
Dissonance and Resonance
A wave function in nested loops written in BASIC on a Sinclair ZX Spectrum 48k (Fuse Emulator) showing dissonant and resonant sine waves.
100 REM listing
400 FOR i = 0 TO 6
410 GO SUB 510: LET h=h-10
420 NEXT i: GO TO 1000
510 FOR x = 0 TO 255
515 LET y=88+a*SIN(x/h*PI)
520 PLOT x,y+47
530 NEXT x: RETURN