Category: CS Courses

23
Jul
2016

Draw Midpoint Circle Algorithm with Keyboard Function

Midpoint algo reference: http://www.eazynotes.com/notes/computer-graphics/algorithms/mid-point-circle-algorithm.pdf http://suraj1693.blogspot.com/2013/11/c-program-for-drawing-circle-using.html https://birunthag.blogspot.com/2014/05/openglc-draw-circle-with-midpoint.html https://www.opengl.org/discussion_boards/showthread.php/169955-using-glutKeyboardFunc Code: #include <windows.h> #include <GL\glut.h> #include <stdlib.h> #include<iostream> #include<stdio.h> using namespace…

17
Jul
2016

Draw Brasenham Line Drawing Algorithms with Random Lines and Colors

Code: #include <windows.h> #include <GL\glut.h> #include <stdlib.h> #include<iostream> using namespace std; int x, y, a, b, nol,…

17
Jul
2016

Star Drawing with OpenGL

Draw 4 stars in screen with OpenGL Screenshot: Code: #include <windows.h> #include <GL\glut.h> void myInit (void) {…

25
Jun
2016

Blink Without Delay – Arduino

Code int ledpin=13; int value=LOW; long previousmillis=0; long interval = 100; void setup() { // put your…

31
May
2016

Some data mining tuts

http://people.sabanciuniv.edu/berrin/cs512/lectures/WEKA/WEKA%20Explorer%20Tutorial-REFERENCE.pdf How to Run Your First Classifier in Weka   https://www.ibm.com/developerworks/library/os-weka2/

30
May
2016

OpenGL Graphics Code: Build a house with GLUT

#include <windows.h> #include <GL\glut.h> void myInit (void) { glClearColor(0.0,0.0,0.0,0.0); // sets background color to white // sets…