How to draw Perfume's LEVEL3 Sphere. Javascript sample code by Hironobu.
var canvassize=800; var px=canvassize/2; var py=canvassize/2 var l=canvassize/2; var c=document.getElementById("prfmCanvas"); var ctx=c.getContext("2d"); var deg = Math.PI/180; var pos_num = 360/15; var pos = new Array(pos_num); ctx.strokeStyle='rgb(200, 200, 200)'; for(var i=0; i < pos_num; i++ ) { var t0 = deg * (i*15); var xy = new Array(2); xy[0] = Math.cos(t0)*l; xy[1] = Math.sin(t0)*l; pos[i] = xy; } for(var i=0; i < pos_num; i++ ) { var xy_start = pos[i] for(var j=0; j < pos_num/2; j++ ) { ctx.moveTo(xy_start[0] + px ,xy_start[1] + py); t = (i + (j*2)) % pos_num ; var xy_end = pos[t]; ctx.lineTo(xy_end[0] + px, xy_end[1] + py); ctx.stroke(); } }