Commit 42d50bc15fd60641acdef5f0766fa88944d5f74e

some minor edits
src/intro/Main.java
(3 / 2)
  
11package intro;
22import processing.core.*;
33
4@SuppressWarnings("serial")
45public class Main extends PApplet {
56
67 Effu text;
99
1010 public void setup(){
1111 size(1024, 768, P3D);
12 text = new Text(this, "code: jypa noise: jypa");
12 text = new Text(this, " HYPERION code: jypa music: King Thrill");
1313 ps = new ParticleSystem(this);
1414 frameRate(60);
1515 smooth();
1919 public void draw(){
2020 background(0);
2121 ps.draw(millis());
22 //text.draw(millis());
22 text.draw(millis());
2323 stroke(52,51,52);
2424 noFill();
2525 rect(0,0,width-1,height-1);
src/intro/Particle.java
(4 / 0)
  
11package intro;
22
3/**
4 * KISS
5 * @author jypa, Jyri Leinonen
6 */
37public class Particle {
48 public int x;
59 public int y;
src/intro/ParticleSystem.java
(3 / 3)
  
5656 minus = cube.pixels[cube.width*y + x];
5757 }
5858 catch (Exception e){
59 //pass, some STUPID unkown exception
59 //pass, STUPID unkown exception
6060 }
6161 pg.strokeWeight(particle.size);
6262 pg.stroke(particle.r + particle.rp - p.red(minus), particle.g + particle.gp - p.green(minus), particle.b + particle.bp - p.blue(minus));
7070 private void drawCube(){
7171 cube.beginDraw();
7272
73 // First light, so we wont rotate 'em
73 // First light, so we wont rotate them
7474 cube.ambientLight(255,255,255);
7575 cube.lightFalloff(1, 0, 0);
7676 cube.directionalLight(150, 150, 150, 0, 0, 1);
8484 cube.rotateZ(rz);
8585 ry += rdy; rx += rdx; rz += rdz;
8686
87 // And finally we draw da cube
87 // And finally we draw the cube
8888 cube.background(0,0);
8989 cube.fill(50,50,50);
9090 cube.strokeWeight(20);
src/intro/Text.java
(4 / 3)
  
1414 public Text(PApplet parent, String text){
1515 super(parent);
1616 msg = text;
17 font = p.createFont("hyperion.ttf", 600, true);
17 font = p.createFont("hyperion.ttf", 200, true);
1818 pg = p.createGraphics(p.width, p.height, PConstants.P3D);
1919 left = p.createGraphics(p.width/2, p.height, PConstants.P3D);
2020 right = p.createGraphics(p.width/2, p.height, PConstants.P3D);
2424 pg.beginDraw();
2525 pg.background(0,0);
2626 pg.textFont(font);
27 pg.fill(170, 159, 127);
2728 pg.text(msg, x, 600);
28 x-= 20;
29 x-= 30;
2930 pg.endDraw();
3031 splitImage();
3132 p.rotateY(-0.5f);
4444 for (int y = 0; y < p.height; y++) {
4545 for (int x = 0; x < p.width; x++) {
4646 c = pg.pixels[y*pg.width + x];
47 if (c < p.color(254)){
47 if (c < p.color(10)){
4848 c = p.color(0,0);
4949 }
5050 if (x < pg.width/2){