Regrettable
Sabtu, 09 Januari 2016
Jumat, 23 Desember 2011
tugas oh tugas !
rrrrrrrr~ rasanya mau lempar laptop tp sayang duit , lempar sepatu ntar sisa sebelah , ya udh deh lempar hati ada yg mau nangkep?? hahaha
sepercik kata di atas tadi mencirikan seseorang yg stres , ya saya sendiri .. hhaha
stres karna kuliah di semester 5 ini sangat sangat di banjiri tugas , ampe bingung gw mau mulai ngerjain yg mn dulu .. krn ga pernah dapetin mood buat ngerjainnya jg *huft
sampe sampe siang td mendadak dapet mood besar banget buat transformasi diri jadi animator ..hahahhaha
cuma bikin 2 dimensi nama gw doang sih , nah ini salah satu tugas animasi komputer , iya mata kuliah yg lg gw ambil skg .. cemen sih keliatannya hasilnya nih cuma gini doang , -->
sepercik kata di atas tadi mencirikan seseorang yg stres , ya saya sendiri .. hhaha
stres karna kuliah di semester 5 ini sangat sangat di banjiri tugas , ampe bingung gw mau mulai ngerjain yg mn dulu .. krn ga pernah dapetin mood buat ngerjainnya jg *huft
sampe sampe siang td mendadak dapet mood besar banget buat transformasi diri jadi animator ..hahahhaha
cuma bikin 2 dimensi nama gw doang sih , nah ini salah satu tugas animasi komputer , iya mata kuliah yg lg gw ambil skg .. cemen sih keliatannya hasilnya nih cuma gini doang , -->
Tapi apa pada peduli dikit gitu , sempet ga sih para kaum awam sama dunia IT itu mikirin gmn ini bikinnya dengan full code tanpa bantuan tools sedikit pun???
nih deh mamam script codenya , klo kalian mau tau ...
*gw buat pake JOGL (sejenis apa itu?? *tanya pada rumput yg bergoyang)
public class Dita2D extends Frame implements GLEventListener {
static int HEIGHT = 800, WIDTH = 800;
static GL gl;
static GLCanvas canvas;
public Dita2D() {
canvas = new GLCanvas();
canvas.addGLEventListener(this);
add(canvas, BorderLayout.CENTER);
gl = canvas.getGL();
}
public static void main(String[] args) {
Dita2D frame = new Dita2D();
frame.setSize(WIDTH, HEIGHT);
frame.setVisible(true);
}
public void init(GLAutoDrawable drawable) {
gl.glColor3f(0.5f, 0.5f, 0.5f);
}
public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height) {
gl.glMatrixMode(GL.GL_PROJECTION);
gl.glLoadIdentity();
gl.glOrtho(0, width, 0, height, -1.0, 1.0);
}
public void display(GLAutoDrawable drawable) {
//Untuk huruf "D"
gl.glBegin(GL.GL_POLYGON);
gl.glColor3f(0, 1, 0);
gl.glVertex2f(100f,100f);
gl.glVertex2f(100f,400f);
gl.glVertex2f(200f,400f);
gl.glVertex2f(250f,300f);
gl.glVertex2f(250f,200f);
gl.glVertex2f(200f,100f);
gl.glEnd();
//Untuk huruf "D"
gl.glBegin(GL.GL_POLYGON);
gl.glColor3f(0, 0, 0);
gl.glVertex2f(150f, 200f);
gl.glVertex2f(150f, 300f);
gl.glVertex2f(175f, 300f);
gl.glVertex2f(200f, 275f);
gl.glVertex2f(200f, 225f);
gl.glVertex2f(175f, 200f);
gl.glEnd();
//Untuk Huruf "I"
gl.glBegin(GL.GL_POLYGON);
gl.glColor3f(1, 0, 0);
gl.glVertex2f(300f, 400f);
gl.glVertex2f(300f, 100f);
gl.glVertex2f(350f, 100f);
gl.glVertex2f(350f, 400f);
gl.glEnd();
//Untuk huruf "T"
gl.glBegin(GL.GL_POLYGON);
gl.glColor3f(1, 1, 0);
gl.glVertex2f(400f, 400f);
gl.glVertex2f(400f, 300f);
gl.glVertex2f(450f, 300f);
gl.glVertex2f(450f, 400f);
gl.glEnd();
//Untuk huruf "T"
gl.glBegin(GL.GL_POLYGON);
gl.glColor3f(1, 1, 0);
gl.glVertex2f(450f, 400f);
gl.glVertex2f(450f, 100f);
gl.glVertex2f(550f, 100f);
gl.glVertex2f(550f, 300f);
gl.glVertex2f(600f, 300f);
gl.glVertex2f(600f, 400f);
gl.glEnd();
//Untuk huruf "A"
gl.glBegin(GL.GL_POLYGON);
gl.glColor3f(0, 0, 1);
gl.glVertex2f(700f, 400f);
gl.glVertex2f(800f, 100f);
gl.glVertex2f(750f, 100f);
gl.glVertex2f(725f, 200f);
gl.glVertex2f(675f, 200f);
gl.glVertex2f(650f, 100f);
gl.glVertex2f(600f, 100f);
gl.glEnd();
//Untuk huruf "A"
gl.glBegin(GL.GL_TRIANGLES);
gl.glColor3f(0, 0, 0);
gl.glVertex2f(700f, 300f);
gl.glVertex2f(675f, 225f);
gl.glVertex2f(725f, 225f);
gl.glEnd();
//Untuk Smile
gl.glBegin(GL.GL_POLYGON);
gl.glColor3f(1, 0, 1);
gl.glVertex2f(350f, 700f);
gl.glVertex2f(350f, 600f);
gl.glVertex2f(400f, 600f);
gl.glVertex2f(400f, 700f);
gl.glEnd();
//Untuk Smile
gl.glBegin(GL.GL_POLYGON);
gl.glColor3f(1, 0, 1);
gl.glVertex2f(425f, 700f);
gl.glVertex2f(425f, 600f);
gl.glVertex2f(475f, 600f);
gl.glVertex2f(475f, 700f);
gl.glEnd();
//Untuk Smile
gl.glBegin(GL.GL_POLYGON);
gl.glColor3f(1, 0, 1);
gl.glVertex2f(350f, 550f);
gl.glVertex2f(400f, 500f);
gl.glVertex2f(425f, 500f);
gl.glVertex2f(475f, 550f);
gl.glEnd();
}
public void displayChanged(GLAutoDrawable drawable, boolean modeChanged, boolean deviceChanged) {
}
}
static int HEIGHT = 800, WIDTH = 800;
static GL gl;
static GLCanvas canvas;
public Dita2D() {
canvas = new GLCanvas();
canvas.addGLEventListener(this);
add(canvas, BorderLayout.CENTER);
gl = canvas.getGL();
}
public static void main(String[] args) {
Dita2D frame = new Dita2D();
frame.setSize(WIDTH, HEIGHT);
frame.setVisible(true);
}
public void init(GLAutoDrawable drawable) {
gl.glColor3f(0.5f, 0.5f, 0.5f);
}
public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height) {
gl.glMatrixMode(GL.GL_PROJECTION);
gl.glLoadIdentity();
gl.glOrtho(0, width, 0, height, -1.0, 1.0);
}
public void display(GLAutoDrawable drawable) {
//Untuk huruf "D"
gl.glBegin(GL.GL_POLYGON);
gl.glColor3f(0, 1, 0);
gl.glVertex2f(100f,100f);
gl.glVertex2f(100f,400f);
gl.glVertex2f(200f,400f);
gl.glVertex2f(250f,300f);
gl.glVertex2f(250f,200f);
gl.glVertex2f(200f,100f);
gl.glEnd();
//Untuk huruf "D"
gl.glBegin(GL.GL_POLYGON);
gl.glColor3f(0, 0, 0);
gl.glVertex2f(150f, 200f);
gl.glVertex2f(150f, 300f);
gl.glVertex2f(175f, 300f);
gl.glVertex2f(200f, 275f);
gl.glVertex2f(200f, 225f);
gl.glVertex2f(175f, 200f);
gl.glEnd();
//Untuk Huruf "I"
gl.glBegin(GL.GL_POLYGON);
gl.glColor3f(1, 0, 0);
gl.glVertex2f(300f, 400f);
gl.glVertex2f(300f, 100f);
gl.glVertex2f(350f, 100f);
gl.glVertex2f(350f, 400f);
gl.glEnd();
//Untuk huruf "T"
gl.glBegin(GL.GL_POLYGON);
gl.glColor3f(1, 1, 0);
gl.glVertex2f(400f, 400f);
gl.glVertex2f(400f, 300f);
gl.glVertex2f(450f, 300f);
gl.glVertex2f(450f, 400f);
gl.glEnd();
//Untuk huruf "T"
gl.glBegin(GL.GL_POLYGON);
gl.glColor3f(1, 1, 0);
gl.glVertex2f(450f, 400f);
gl.glVertex2f(450f, 100f);
gl.glVertex2f(550f, 100f);
gl.glVertex2f(550f, 300f);
gl.glVertex2f(600f, 300f);
gl.glVertex2f(600f, 400f);
gl.glEnd();
//Untuk huruf "A"
gl.glBegin(GL.GL_POLYGON);
gl.glColor3f(0, 0, 1);
gl.glVertex2f(700f, 400f);
gl.glVertex2f(800f, 100f);
gl.glVertex2f(750f, 100f);
gl.glVertex2f(725f, 200f);
gl.glVertex2f(675f, 200f);
gl.glVertex2f(650f, 100f);
gl.glVertex2f(600f, 100f);
gl.glEnd();
//Untuk huruf "A"
gl.glBegin(GL.GL_TRIANGLES);
gl.glColor3f(0, 0, 0);
gl.glVertex2f(700f, 300f);
gl.glVertex2f(675f, 225f);
gl.glVertex2f(725f, 225f);
gl.glEnd();
//Untuk Smile
gl.glBegin(GL.GL_POLYGON);
gl.glColor3f(1, 0, 1);
gl.glVertex2f(350f, 700f);
gl.glVertex2f(350f, 600f);
gl.glVertex2f(400f, 600f);
gl.glVertex2f(400f, 700f);
gl.glEnd();
//Untuk Smile
gl.glBegin(GL.GL_POLYGON);
gl.glColor3f(1, 0, 1);
gl.glVertex2f(425f, 700f);
gl.glVertex2f(425f, 600f);
gl.glVertex2f(475f, 600f);
gl.glVertex2f(475f, 700f);
gl.glEnd();
//Untuk Smile
gl.glBegin(GL.GL_POLYGON);
gl.glColor3f(1, 0, 1);
gl.glVertex2f(350f, 550f);
gl.glVertex2f(400f, 500f);
gl.glVertex2f(425f, 500f);
gl.glVertex2f(475f, 550f);
gl.glEnd();
}
public void displayChanged(GLAutoDrawable drawable, boolean modeChanged, boolean deviceChanged) {
}
}
Minggu, 11 Desember 2011
i'm done
I wasn’t looking for this, What is this? I don’t know
You know I was doing just fine.. By myself..On my own..
Tell me how to stop this feeling
I don’t wanna fall in love, Just wanna have a little fun
Then you came and swept me up And now I’m done, so done
Fallen madly deeply I..Surprised myself enough to find..
That what’s begun..Is love And now I’m done, so done
I’m done
I can’t imagine right now, Standing here without u..
To think that I tried to ignore..What I felt..What I knew
I could never stop this feeling..
You know I was doing just fine.. By myself..On my own..
Tell me how to stop this feeling
I don’t wanna fall in love, Just wanna have a little fun
Then you came and swept me up And now I’m done, so done
Fallen madly deeply I..Surprised myself enough to find..
That what’s begun..Is love And now I’m done, so done
I’m done
I can’t imagine right now, Standing here without u..
To think that I tried to ignore..What I felt..What I knew
I could never stop this feeling..
If tomorrow never comes
If Tomorrow Never Comes..
Sometimes late at night..I lie awake and watch him sleeping.. he’s lost in peaceful dreams..
So I turn out the lights and lay there in the dark, And the thought crosses my mind..
If I never wake up in the morning..Would he ever doubt the way I feel About him in my heart
If tomorrow never comes, Will he know how much I loved him..
That I try in every way..To show him every day, That he’s my only one
If my time on earth were through And he must face the world without me..
Is the love I gave him in the past..Gonna be enough to last
If tomorrow never comes
‘Cause I’ve lost loved ones in my life..
Who never knew how much I loved them
Now I live with the regret, that my true feelings for them never were revealed
So I made a promise to myself , To say each day how much he means to me And avoid that circumstance
Where there’s no second chance
To tell him how I feel
Sometimes late at night..I lie awake and watch him sleeping.. he’s lost in peaceful dreams..
So I turn out the lights and lay there in the dark, And the thought crosses my mind..
If I never wake up in the morning..Would he ever doubt the way I feel About him in my heart
If tomorrow never comes, Will he know how much I loved him..
That I try in every way..To show him every day, That he’s my only one
If my time on earth were through And he must face the world without me..
Is the love I gave him in the past..Gonna be enough to last
If tomorrow never comes
‘Cause I’ve lost loved ones in my life..
Who never knew how much I loved them
Now I live with the regret, that my true feelings for them never were revealed
So I made a promise to myself , To say each day how much he means to me And avoid that circumstance
Where there’s no second chance
To tell him how I feel
Langganan:
Postingan (Atom)