The Code-Bin
Links
Home
Add your code!
All Listings
About
Latest Entry
Featured Scripts
Author's Website
Latest Entries
FFMPEG Thumbnail Scr...
PHP, 0.8KB
Jul. 29, 10:24pm
John
Z80 Assembler, 190 bytes
Feb. 17, 3:36am
John
Z80 Assembler, 176 bytes
Sep. 13, 2:19am
John
Z80 Assembler, 77 bytes
Sep. 13, 2:18am
John
Z80 Assembler, 209 bytes
Sep. 13, 2:17am
untitled Other Code
Posted by: DDR | March 11, 2011 @ 7:34pm
Other Code
[
Download
]
# -*- coding: utf-8 -*- function triangleStrip(points, width): leftPoints = for each point, width cm. along angle_to(point-1) + angle_to(point+1) /2, //top edge points -width cm. along angle_to(point-1) + angle_to(point+1) /2 //bottom edge points triangles = points[n:n+3] where n = each int in range(size(points)-3) //add, for each vertex, the triangle to the right (http://wesnoth.org/jetrel/triangle-strip.png). drawTriangleStrip(triangles)
Syntax Highlighting
[
Open in new window
]
Author Comments
none
Rating
4.46 / 8
82 Votes
http://codebin.yi.org/1164
page generated in 0.01 seconds