Änderungen

HackFFM Logo 2.0

1.560 Byte hinzugefügt, 19:50, 2. Jan. 2017
/* Bitcode (17*24) als OpenSCAD Code */ ADD 3d module open scad
</pre>
== OpenSCAD Code ===== 3D Bitcode (17×24) OpenSCAD codemodul ===<pre> HackFFM(); module HackFFM(size=1,high=1,solid=1,pM=.1){ basePixelSize = size; baseWidth = 17; pixelMargin = solid?-0.01:pM; hight=high;   pixels = [1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1, 1,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,1, 1,0,1,0,1,0,0,0,0,0,0,0,1,0,1,0,1, 1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1, 1,0,1,0,1,0,0,0,0,0,0,0,1,0,1,0,1, 1,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,1, 1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1, 0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0, 0,0,0,0,0,1,1,0,0,0,1,1,0,0,0,0,0, 0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0, 0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0, 0,1,0,1,0,0,1,0,0,0,1,0,0,1,0,1,0, 1,1,0,1,0,0,0,0,0,0,0,0,0,1,0,1,1, 1,1,1,0,1,1,1,1,1,1,1,1,1,0,1,1,1, 1,1,0,1,0,1,1,1,1,1,1,1,0,1,0,1,1, 1,1,0,0,1,0,0,0,0,0,0,0,1,0,0,1,1, 0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0, 1,1,0,0,0,1,1,1,1,1,1,1,0,0,0,1,1, 1,1,0,0,1,1,1,0,0,0,1,1,1,0,0,1,1, 0,0,0,0,1,1,0,0,0,0,0,1,1,0,0,0,0, 0,0,0,1,0,0,1,0,0,0,1,0,0,1,0,0,0, 0,0,0,1,1,1,1,0,0,0,1,1,1,1,0,0,0, 0,0,0,1,1,1,1,0,0,0,1,1,1,1,0,0,0];  pixelCount = len(pixels);   union() { for(i=[0:pixelCount]) { x=(basePixelSize+pixelMargin)*(i%baseWidth); y=(basePixelSize+pixelMargin)*floor(i/baseWidth); if(pixels[i]==1) { translate([x,y]) cube([basePixelSize,basePixelSize,hight]); } } }}</pre>  === 2D Bitcode (17*24) als OpenSCAD Code ===
<pre>
basePixelSize = 2;
assign(x=(basePixelSize+pixelMargin)*(i%baseWidth),y=(basePixelSize+pixelMargin)*floor(i/baseWidth)) {
if(pixels[i]==1) {
translate([x,y]) square([basePixelSize,basePixelSize]);
}
84
Bearbeitungen