Skip to content

Instantly share code, notes, and snippets.

View dwichan0905's full-sized avatar
💒
Working from Home

Dwi Candra Permana, S.Kom dwichan0905

💒
Working from Home
View GitHub Profile
@dwichan0905
dwichan0905 / CobaSplit.java
Created April 12, 2020 14:08
Membuat pencarian kalimat sederhana di dalam suatu array 2D
import java.util.Scanner;
/**
*
* @author Dwi Candra Permana
*/
public class CobaSplit {
/**
* @param args the command line arguments
@dwichan0905
dwichan0905 / Cahaya3D.cpp
Created January 13, 2020 16:57
Membuat Efek Pencahayaan pada Object 3D OpenGL
#include<GL/glut.h>
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
int w = 400, h = 400;
int sudut = 0, o = 0, p = 0, q = 0;
int a, b;
void renderScene(void){
@dwichan0905
dwichan0905 / Animated.cpp
Created January 13, 2020 12:17
Membuat Animasi Linear Sederhana pada C++ OpenGL
#include <GL\glut.h>
GLfloat xRotated, yRotated, zRotated;
void init(void)
{
glClearColor(0, 0, 0, 0);
}
void DrawCube(void)
{
glMatrixMode(GL_MODELVIEW);
@dwichan0905
dwichan0905 / 3DInput.cpp
Created January 12, 2020 11:47
Pembentukan Object 3D dan Keyboard Input di OpenGL
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <GL\glut.h>
#include <math.h>
// Inisialisasi variabel untuk pembentukan objek
float w = 480, h = 480;
@dwichan0905
dwichan0905 / ColorfulTriangle.cpp
Created November 11, 2019 12:42
Membuat Segitiga Berwarna dengan C++ OpenGL
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <GL\glut.h>
#include <stdlib.h>
#include "stdlib.h"
#include "GL/glut.h"
@dwichan0905
dwichan0905 / AlgoritmaBresenham.cpp
Created November 11, 2019 12:39
Membuat Garis dengan Algoritma Bresenham
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <GL/glut.h>
void tampilan(void) {
glClearColor(1.0, 1.0, 1.0, 0.0); // warna display
glMatrixMode(GL_PROJECTION);
@dwichan0905
dwichan0905 / Rotasi.cpp
Last active November 11, 2019 12:35
Melakukan Rotasi di OpenGL
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <GL\glut.h>
#include <math.h>
void rotasi() {
glBegin(GL_POLYGON); //membuat persegi
@dwichan0905
dwichan0905 / FaceDetection.java
Created July 19, 2019 06:34 — forked from arnold4037/FaceDetection.java
Face Detection System using Java & opencv
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Author: Arnold Coutinho
//
//
//
//
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
package gui;
@dwichan0905
dwichan0905 / SoundOutput.java
Last active July 19, 2019 06:25
Class untuk mengeluakan suatu suara di Java Desktop 8
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.logging.Level;
import java.util.logging.Logger;
import sun.audio.AudioPlayer;
import sun.audio.AudioStream;