Browse files

revert so single letter

  • Loading branch information...
1 parent 7ef5f8a commit f92a3758729b2ab3e91d4584ee199b0a754f7f67 @neophob committed Feb 10, 2012
Showing with 12 additions and 6 deletions.
  1. +4 −0 processingApp/kalikut/Effect.pde
  2. +7 −5 processingApp/kalikut/Letter.pde
  3. +1 −1 processingApp/kalikut/kalikut.pde
View
4 processingApp/kalikut/Effect.pde
@@ -41,10 +41,12 @@ void generator() {
switch(mode) {
case 0:
colorArray[i] = Wheel((frame-i)*2);
+// colorArray[i+8] = Wheel((frame-i)*2);
break;
case 1:
colorArray[i] = Wheel(frame);
+// colorArray[i+8] = Wheel(frame);
break;
case 2:
@@ -59,9 +61,11 @@ void generator() {
case 3:
if ((frame-i>>1)%2==1) {
colorArray[i] = color(0, 0, 0);
+// colorArray[i+8] = color(0, 0, 0);
}
else {
colorArray[i] = color(255, 255, 255);
+// colorArray[i+8] = color(255, 255, 255);
}
break;
View
12 processingApp/kalikut/Letter.pde
@@ -54,15 +54,17 @@ public void drawLetter() {
int ofs=0;
for (int i=0; i<colorArray.length; i++) {
pg.fill(colorArray[i]);
- pg.rect(ofs, 0, letterWidth[i], 120);
- ofs += letterWidth[i];
+ pg.rect(ofs, 0, letterWidth[i], 65*2);
+
+// color c = colorArray[i];
+// pg.fill(255-red(c), 255-green(c), 255-blue(c));
+// pg.rect(ofs, 65, letterWidth[i % strKali.length()], 60);
+
+ ofs += letterWidth[i % strKali.length()];
}
pg.endDraw();
pg.blend(logoImg, 0, 0, ofs, 120, 0, 0, ofs, 120, MULTIPLY);
-// pg.image(logoImg, 0, 0);
-//PImage xx = logoImg;
-
image(pg, OFS, 0);
}
View
2 processingApp/kalikut/kalikut.pde
@@ -64,7 +64,7 @@ void setup() {
// Set the font and its size (in units of pixels)
textFont(fontA, 120);
- colorArray = new color[strKali.length()];
+ colorArray = new color[NR_OF_PIXELS];
initGui();
frame=NR_OF_PIXELS*2; //init the safe way

0 comments on commit f92a375

Please sign in to comment.