|
|
|
menu @meow {
sclick:{
if (%tx) && (%ty) {
var %r $iif(%tr1,$v1,1),%g $iif(%tg1,$v1,1),%b $iif(%tb1,$v1,1),%k 1,%p1 %tx,%p2 %ty,%r1 1 | while ((%p1 != $mouse.x) || (%p2 != $mouse.y)) {
drawdot -r @meow $rgb(%r,%g,%b) 50 %p1 %p2
if (%r1) { inc %r | if (%b > 1) { dec %b } } | if (%r = 255) var %g1 1,%r1
if (%g1) { inc %g | dec %r } | if (%g = 255) var %b1 1,%g1
if (%b1) { inc %b | dec %g } | if (%b = 255) var %r1 1,%b1
if ($mouse.x > %p1) inc %p1 | if ($mouse.x < %p1) dec %p1 | if ($mouse.y > %p2) inc %p2 | if ($mouse.y < %p2) dec %p2
inc %k
}
unset %tx | unset %ty
set %tr1 %r | set %tg1 %g | set %tb1 %b
}
else { set %tx $mouse.x | set %ty $mouse.y }
}
rclick:clear @meow | unset %tr1 | unset %tg1 | unset %tb1
}
on *:CLOSE:@meow:/unset %tr1 | unset %tg1 | unset %tb1
alias trgb window -px @meow
| |
|
Retour à la liste des snippets
Cette annonce est-elle crédible? |
|
|
|