I seem to remember this being like the logo of every Amiga software company ever

I seem to remember this being like the logo of every Amiga software company ever

I seem to remember this being like the logo of every Amiga software company ever

… except I just made it in OpenSCAD:

// 12-sided box flower - scruss, 2017

// uses HSV library
//  from https://www.thingiverse.com/thing:279951
//   function hsvToRGB(h, s, v, a)
use <hsvtorgb.scad>;

r = 10;
ulx = r * cos(60);
uly = r * sin(60);
lrx = r * cos(30);
lry = r * sin(30);
side = lrx - ulx;

for(j = [0:11]) {
    for(i = [0:11]) {
        color(hsvToRGB(i / 12, 1, (24 - j) / 24, (48 - j) / 48)) {
            rotate(j * 15) {
                scale(pow(sqrt(2), j)) {
                    rotate(i * 30) {
                        translate([ulx, lry]) {
                            square(side);
                        }
                    }
                }   
            }       // a simple  joy that
        }           // python programmers
    }               // will  never   know
}

View in Instagram ⇒

some OpenSCAD 2D SVG things for Josh …

I’ve found that OpenSCAD is really good for producing 2d designs in a very small amount of code. Here are three examples to play with:

Diagonal Section through Menger sponge (SVG) (OpenSCAD source) — this may take a while to render, as it’s making a Menger sponge in 3D and then slicing through it to make the projection.

(If you take out the projection() clause, it looks like this in 3D:

)

Pattern from Ak Medrese, Nigde, Turkey (SVG) (OpenSCAD source) — design after a construction by Eric Broug.

Basis of a pattern from the Alhambra (SVG) (OpenSCAD source)

BlockTwo, a dreadful font

blocktwo-demo

BlockTwo is a spectacularly ugly font mostly for playing about with 3D intersections in OpenSCAD. Not recommended for any but the most extreme display usage. Coverage is only A-Z caps, 0-9, heart and block.

Font Library link: BlockTwo
Local copy: blocktwo.zip