-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|693|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-




melmantheman

Pixel Perfect Collision

4th April 2012

Helps to make pixel perfect(accurate down to a pixel) collisions using image RGB values and


Afr0

Patcher

12th February 2012

Are you writing an MMO? Use this to patch clients!


melmantheman

Sorting numbers in java

2nd November 2011

This can be used to sort high scores. it goes least to greatest but a simple turn around isn't to hard.


melmantheman

Moving particles in java

31st October 2011

How to move particles in java. here is a class for it. just copy and paste


Hotshot

Twisters Demo in just 9 Lines of Codes!

10th October 2011

[code]
Const xRes = 800,yRes = 600,Pos1=175,Pos2=375;Global a#,x1#,x2#,x3#,x4#,ang#=0,amp#=7,HideMouse;Type Twister;Field X1#,X2#,X3#,X4#;Function twister();For a=1 To 600 Step 2;x1=((Sin((a/amp)+ang))*100)+300;x2=((Sin((a/amp)+ang+90))*100)+300;x3=((Sin(*snip*


Andy_A

Cartoon Sheep Function

3rd July 2011

Make all the cartoon sheep you could ever want...


Andy_A

Filled Rotated Ellipses

3rd July 2011

Rotate an ellipse to any angle and fill it


Andy_A

Cartoon Speech Bubbles

3rd July 2011

Function to draw cartoon speech bubbles


Andy_A

Cartoon Thought Bubbles

1st July 2011

Function to draw cartoon thought bubbles


HoboBen

Exact supported OpenGL texture sizes

23rd June 2011

To get an idea of the maximum size textures your graphics card supports, you can use ''proxy textures'' in OpenGL 1.1 and above.
This can depend on the specific implementation of your textures, which is why this can't always be known in advance.
*snip*


Andy_A

Texture Filled Triangle Function

13th June 2011

Fill any triangle with any texture


HoboBen

Circular Buffer (C)

22nd April 2011

A fast fixed-size buffer. which you can pretend is ''infinite memory'' for data that you don't care too much about.
When you write to it, it fills up until you start overwriting the oldest data. When reading, it returns the oldest data it has.
Id*snip*


Andy_A

Intersection Points of Two Circles

1st April 2011

Get the intersection coords


Andy_A

FAST! - Scan line filled polygons

17th March 2011

Fill ANY polygon quickly


Cower

NSImage Nine-Part Drawing

6th March 2011

A category that adds simplified nine-part image drawing to NSImage


Teasy

Generic rendering routines

30th January 2011

Handy text routines, RGB modification and HSL conversion, and some custom Rect/Oval functions.


Andy_A

Bresenham like Circle and Ellipse functions

24th January 2011

Both of these functions are faster than 'Oval'


HoboBen

Bi-directional C and Lua

12th January 2011

Just the simplest of examples. A C host program runs a Lua script, gets and sets the script's variables, runs the script's functions, and provides a C function for the script to call.
(Lua 5.1)
bidirectional.lua
[code]
FirstName = ''Unset'';
S*snip*


HoboBen

Convert a double to bytes and back in C

6th December 2010

By using a C union data structure, it's simple to convert a double to its raw bytes and back.
Note that the actual order of bytes varies depending on machine endianness.
[code]
#include <stdlib.h>
#include <stdio.h>
union {
double d; *snip*


Cower

Animatable Value

21st November 2010

Simple class to animate between two values over a set amount of time using GLFW's timing API


dna

Drag and Drop

24th October 2010

Here's code for dragging and dropping and object.
The code was written by me but commented by Teasy.
[code]Const GRA_WID=640,GRA_HEI=480
Const T$=''What a drag''
Graphics GRA_WID,GRA_HEI,32,2
AppTitle T$
SeedRnd MilliSecs()
SetBuffer BackBuf*snip*


Jayenkai

4096 Baddies

24th October 2010

[code]
Graphics 640,480,32,2
SetBuffer BackBuffer()
bigimg=CreateImage(1024,1024)
Global img=CreateImage(16,8,2)
Global seed=MilliSecs()
ex=0
ey=0
Repeat
MakeBad()
SetBuffer ImageBuffer(bigimg)
DrawImage img,ex,ey,0
DrawImage img,ex+16,ey,1
Se*snip*


Andy_A

Rounded rect buttons with centered text + word wrap

7th October 2010

Rounded Text Buttons/Panels


Scherererer

Soft Body Physics

12th September 2010

Simple demo of roughly how soft bodies work


HoboBen

Algorithm to Draw a Line of Arbitrary Thickness

4th September 2010

By modifying Bresenham's line algorithm to plot rectangles instead of pixels, it is possible to draw lines of any thickness.
[code]
Program
Uses
pure2d,
keyset
Procedure BLine(x0: Integer, y0: Integer, x1: Integer, y1: Integer, color*snip*

Newer Posts More - Older Posts