.developing rainbow

git-svn-id: svn://ultimatepp.org/upp/trunk@3665 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2011-07-15 13:09:24 +00:00
commit 44b135a5e7
5 changed files with 130 additions and 37 deletions

View file

@ -3,6 +3,17 @@
using namespace Upp;
void DDRect(RGBA *t, int dir, const byte *pattern, int pos, int count)
{
while(count-- > 0) {
byte p = pattern[7 & pos++];
*t->r ^= p;
*t->g ^= p;
*t->b ^= p;
t += dir;
}
}
struct App : public Ctrl {
uint64 pattern;
int pos;