This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pygame | |
import math | |
import time | |
# Initialize the game engine | |
pygame.init() | |
# Define the colors we will use in RGB format | |
black = [ 0, 0, 0] | |
white = [255,255,255] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Keywords: Alpha Blending, Textures, Animation, Double Buffer | |
# most basic winding: just a shift of math.pi away from one another | |
# compare with surface_linev2.py | |
# notice that this present does nt differ much from surface_linev22.py | |
from OpenGL.GL import * | |
from OpenGL.GLU import * | |
from math import * # trigonometry | |
import math |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Keywords: Alpha Blending, Textures, Animation, Double Buffer | |
# most basic winding: just a shift of math.pi away from one another | |
# compare with surface_linev2.py | |
# notice that this present does nt differ much from surface_linev22.py | |
from OpenGL.GL import * | |
from OpenGL.GLU import * | |
from math import * # trigonometry | |
import math |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
# pip install PyOpenGL | |
# pip install pygame | |
from OpenGL.GL import * | |
from OpenGL.GLU import * | |
from math import * # trigonometry | |
import math |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Keywords: Alpha Blending, Textures, Animation, Double Buffer | |
# most basic winding: just a shift of math.pi away from one another | |
# compare with surface_linev2.py | |
# notice that this present does nt differ much from surface_linev22.py | |
from OpenGL.GL import * | |
from OpenGL.GLU import * | |
from math import * # trigonometry | |
import math |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Keywords: Alpha Blending, Textures, Animation, Double Buffer | |
# most basic winding: just a shift of math.pi away from one another | |
# compare with surface_linev2.py | |
# notice that this present does nt differ much from surface_linev22.py | |
from OpenGL.GL import * | |
from OpenGL.GLU import * | |
from math import * # trigonometry | |
import math |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from OpenGL.GL import * | |
from OpenGL.GLU import * | |
from math import * # trigonometry | |
import math | |
import pygame # just to get a display | |
# get an OpenGL surface |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Keywords: Alpha Blending, Textures, Animation, Double Buffer | |
# most basic winding: just a shift of math.pi away from one another | |
# compare with surface_linev2.py | |
# notice that this present does nt differ much from surface_linev22.py | |
from OpenGL.GL import * | |
from OpenGL.GLU import * | |
from math import * # trigonometry | |
import math |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pygame | |
import math | |
# Initialize the game engine | |
pygame.init() | |
# Define the colors we will use in RGB format | |
black = [ 0, 0, 0] | |
white = [255,255,255] | |
blue = [ 0, 0,255] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#### sudo pip install pyglet | |
from math import pi, sin, cos | |
import pyglet | |
from pyglet.gl import * | |
mywidth=0 |