no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


users:shilo:extensions:spquad_colorcomponents [2013/07/10 01:23] (current) – created shilo
Line 1: Line 1:
 +====== SPQuad+ColorComponents ======
 +---- dataentry extension ----
 +type          : extension
 +author_mail   : shilo86@gmail.com Shilo White
 +description   : A category for Sparrow 2.X that allows a SPQuad (or subclass) to get/set red, green, and blue color components.
 +lastupdate_dt : 2013-07-09
 +compatible    : v2.X
 +depends       : 
 +tags          : quad, image, color, red, green, blue
 +homepage_url  : https://gist.github.com/Shilo/5962180
 +download_url  : https://gist.github.com/Shilo/5962180/download
 +----
  
 +
 +
 +===== Usage =====
 +
 +<code objc>
 +SPQuad *quad = [SPQuad quadWithWidth:100 height:100 red:255 green:255 blue:255];
 +[self addChild:quad];
 +
 +quad.redValue = 0;
 +quad.greenValue = 0;
 +quad.blueValue = 0;
 +
 +[quad setRedValue:255 ofVertex:0];
 +[quad setGreenValue:255 ofVertex:1];
 +[quad setBlueValue:255 ofVertex:2];
 +[quad setRed:255 green:255 blue:255 ofVertex:3];
 +
 +NSLog(@"red:%i green:%i blue:%i", quad.redValue, quad.greenValue, quad.blueValue);
 +
 +for (int i=0; i<4; i++)
 +    NSLog(@"vertex %i red:%i green:%i blue:%i", i, [quad redValueOfVertex:i], [quad greenValueOfVertex:i], [quad blueValueOfVertex:i]);
 +</code>
 +
 +===== Changelog =====
 +
 +  * //2013/07/10 01:20//: First public version
 +
 +===== Source Code =====
 +
 +%gist(5962180)%
 +
 +===== Discussion =====
 +
 +//No comments so far. Feel free to edit this part of the page.//
  users/shilo/extensions/spquad_colorcomponents.txt · Last modified: 2013/07/10 01:23 by shilo
 
Powered by DokuWiki