Änderungen

Aus Hackerspace Ffm
Wechseln zu: Navigation, Suche

HackFFM Logo 2.0

7.170 Byte hinzugefügt, 19:15, 15. Jul. 2017
/* Bitcode multicolor (19*26) */
=== Logo with Hackerspace text ===
[[Datei:Logo_mit_text.png|300px|Colored logo for Web]][[Datei:HSFFM_LOGOTEXT_SW.png|300px|Black/White logo for Web]][[Datei:Logo_mit_text_for_print.png|300px|Colored logo for Print]] 
=== Logo for video intros ===
<br/>
 
 
== Adafruit_GFX ==
 
<pre>
void hackffm(uint16_t x_start, uint16_t y_start, uint8_t scale) {
const uint16_t hackffm_foreground = 0xF7BE;
const uint16_t hackffm_beam = 0xED6B;
const uint16_t hackffm_background = 0x0000;
 
//Clear background
tft.fillRect( x_start, y_start,17 * scale, 24 * scale, hackffm_background);
 
//Draw feet
tft.fillRect( 3 * scale + x_start, 21 * scale + y_start, 4 * scale, 3 * scale, hackffm_foreground);
tft.fillRect(10 * scale + x_start, 21 * scale + y_start, 4 * scale, 3 * scale, hackffm_foreground);
 
tft.fillRect( 4 * scale + x_start, 21 * scale + y_start, 2 * scale, scale, hackffm_background);
tft.fillRect(11 * scale + x_start, 21 * scale + y_start, 2 * scale, scale, hackffm_background);
 
//Draw torso
tft.fillRect( 4 * scale + x_start, 14 * scale + y_start, 9 * scale, 7 * scale, hackffm_foreground);
tft.fillRect( 6 * scale + x_start, 20 * scale + y_start, 5 * scale, scale, hackffm_background);
tft.fillRect( 7 * scale + x_start, 19 * scale + y_start, 3 * scale, scale, hackffm_background);
tft.fillRect( 4 * scale + x_start, 18 * scale + y_start, scale, scale, hackffm_background);
tft.fillRect(12 * scale + x_start, 18 * scale + y_start, scale, scale, hackffm_background);
tft.fillRect( 5 * scale + x_start, 16 * scale + y_start, 7 * scale, scale, hackffm_background);
tft.fillRect( 4 * scale + x_start, 15 * scale + y_start, scale, scale, hackffm_background);
tft.fillRect(12 * scale + x_start, 15 * scale + y_start, scale, scale, hackffm_background);
tft.fillRect( 3 * scale + x_start, 15 * scale + y_start, scale, scale, hackffm_foreground);
tft.fillRect(13 * scale + x_start, 15 * scale + y_start, scale, scale, hackffm_foreground);
 
tft.fillRect( 2 * scale + x_start, 14 * scale + y_start, scale, scale, hackffm_foreground);
tft.fillRect(14 * scale + x_start, 14 * scale + y_start, scale, scale, hackffm_foreground);
 
//Draw arms
tft.fillRect( scale + x_start, 12 * scale + y_start, scale, 5 * scale, hackffm_foreground);
tft.fillRect(15 * scale + x_start, 12 * scale + y_start, scale, 5 * scale, hackffm_foreground);
 
tft.fillRect( x_start, 13 * scale + y_start, scale, 4 * scale, hackffm_foreground);
tft.fillRect(16 * scale + x_start, 13 * scale + y_start, scale, 4 * scale, hackffm_foreground);
 
tft.fillRect( x_start, 18 * scale + y_start, 2 * scale, 2 * scale, hackffm_foreground);
tft.fillRect(15 * scale + x_start, 18 * scale + y_start, 2 * scale, 2 * scale, hackffm_foreground);
 
//Draw head
tft.fillRect( 3 * scale + x_start, 11 * scale + y_start, scale, 3 * scale, hackffm_foreground);
tft.fillRect(13 * scale + x_start, 11 * scale + y_start, scale, 3 * scale, hackffm_foreground);
 
tft.fillRect( 4 * scale + x_start, 10 * scale + y_start, 9 * scale, scale, hackffm_foreground);
tft.fillRect( 5 * scale + x_start, 9 * scale + y_start, 2 * scale, 2 * scale, hackffm_foreground);
tft.fillRect(10 * scale + x_start, 9 * scale + y_start, 2 * scale, 2 * scale, hackffm_foreground);
 
tft.fillRect( 6 * scale + x_start, 12 * scale + y_start, scale, scale, hackffm_foreground);
tft.fillRect(10 * scale + x_start, 12 * scale + y_start, scale, scale, hackffm_foreground);
 
//Draw antenna + beam
tft.fillRect( 8 * scale + x_start, 5 * scale + y_start, scale, 4 * scale, hackffm_foreground);
tft.fillRect( 8 * scale + x_start, 3 * scale + y_start, scale, scale, hackffm_foreground);
tft.fillRect( 6 * scale + x_start, 3 * scale + y_start, scale, scale, hackffm_beam);
tft.fillRect(10 * scale + x_start, 3 * scale + y_start, scale, scale, hackffm_beam);
tft.fillRect( 4 * scale + x_start, 2 * scale + y_start, scale, 3 * scale, hackffm_beam);
tft.fillRect(12 * scale + x_start, 2 * scale + y_start, scale, 3 * scale, hackffm_beam);
tft.fillRect( 2 * scale + x_start, scale + y_start, scale, 5 * scale, hackffm_beam);
tft.fillRect(14 * scale + x_start, scale + y_start, scale, 5 * scale, hackffm_beam);
tft.fillRect( x_start, y_start, scale, 7 * scale, hackffm_beam);
tft.fillRect(16 * scale + x_start, y_start, scale, 7 * scale, hackffm_beam);
}
</pre>
== ASCII Art ==
</pre>
== Bitcode multicolor (1719*2426) als ==<pre>1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,3,1,1,1,0,0,0,0,0,0,0,0,0,1,1,1,3,1,1,3,1,3,1,1,1,0,0,0,0,0,1,1,1,3,1,3,1,1,3,1,3,1,3,1,1,1,1,1,1,1,3,1,3,1,3,1,1,3,1,3,1,3,1,3,1,2,1,3,1,3,1,3,1,3,1,1,3,1,3,1,3,1,1,1,1,1,1,1,3,1,3,1,3,1,1,3,1,3,1,1,1,0,1,2,1,0,1,1,1,3,1,3,1,1,3,1,1,1,0,0,0,1,2,1,0,0,0,1,1,1,3,1,1,1,1,0,0,0,0,0,1,2,1,0,0,0,0,0,1,1,1,0,0,0,0,0,1,1,1,1,2,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,2,2,1,1,1,2,2,1,1,0,0,0,0,0,0,0,1,1,2,2,2,2,2,2,2,2,2,1,1,0,0,0,0,1,1,1,2,1,1,1,1,1,1,1,1,1,2,1,1,1,0,1,1,2,1,2,1,1,2,1,1,1,2,1,1,2,1,2,1,1,1,2,2,1,2,1,1,1,1,1,1,1,1,1,2,1,2,2,1,1,2,2,2,1,2,2,2,2,2,2,2,2,2,1,2,2,2,1,1,2,2,1,2,1,2,2,2,2,2,2,2,1,2,1,2,2,1,1,2,2,1,1,2,1,1,1,1,1,1,1,2,1,1,2,2,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,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,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)===
<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]);
}
}
}</pre>
 
== Logo im QR-Code ==
Zeigen auf http://hackffm.de - mehr passte wohl nicht bei all den "Störpixeln"...
 
[[Datei:Qrpixel.png|200px]]
[[Datei:Qrpixel_bunt.png|178px]]
1.954
Bearbeitungen