Open main menu

CDOT Wiki β

Changes

User:Dhhodgin

13 bytes added, 21:58, 18 October 2009
shorten()
Here is a list of code blocks I have written for the processing.js project
==== shorten() ====
Specification for shorten() in processing [http://processing.org/reference/shorten_.html here].<br />
Arrays in JS have no type the elements in them can contain any type and do not all have to match. Arrays are also passed by reference which means a reference to the object is passed in not the entire object. so my code creates a new array and then copies the passed in array first and then pops one element off the new array and the newary object is returned. This is built to accept a processing type of String, int, boolean, char, byte, and float.
1
edit