mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-10-06 00:30:10 -06:00
.developing rainbow
git-svn-id: svn://ultimatepp.org/upp/trunk@3665 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
1b1f015b2b
commit
44b135a5e7
5 changed files with 130 additions and 37 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue