Möbius Strip #
A Möbius Strip is a shape that only has one side.
Params #
Name | PropType | description |
---|---|---|
detail | number | Strip’s detail. The bigger it is, the smoother the strip looks |
radius | number | Shape’s radius. |
Showcase #
Click and drag to move the camera arround!
code #
sketch.js
// gui params
var detail = 16;
var radius = 100;
var gui;
function setup() {
createCanvas(450, 450, WEBGL);
setAttributes('antialias', true);
easycam = createEasyCam();
easycam.setZoomScale(false);
gui = createGui('Double click to close');
gui.addGlobals('detail', 'radius');
}
function draw() {
background(255);
stroke(0);
strokeWeight(1);
fill(0, 0, 255);
push();
mobius({detail, radius});
pop();
}