This commit is contained in:
parent
dae7a75402
commit
33e8eca3c8
|
@ -38359,7 +38359,7 @@ _x_paint :
|
|||
|
||||
# Init variables.
|
||||
pass[-2,-1] 1 ('{-2,n}') discard. {'_c1'} =>[0] {t} rm.
|
||||
__color={0,if(ia<128,vector3(255),vector3(0))}
|
||||
__color={0,vector3(ia<128?255:0)}
|
||||
brushsize=1
|
||||
brushopacity=0
|
||||
brushangle=90
|
||||
|
@ -38413,8 +38413,8 @@ _x_paint :
|
|||
|
||||
if $x1>=0 # Event in the image window.
|
||||
if {*1,b}&1 # Left button -> draw brush stroke.
|
||||
ox1:=if($ox1<0,$x1,$ox1)
|
||||
oy1:=if($oy1<0,$y1,$oy1)
|
||||
ox1:=$ox1<0?$x1:$ox1
|
||||
oy1:=$oy1<0?$y1:$oy1
|
||||
delta:=max(abs($x1-$ox1),abs($y1-$oy1))
|
||||
r1:=2*$brushsize+1
|
||||
r2:=$r1*$brushthickness
|
||||
|
@ -38478,11 +38478,11 @@ x_plasma : check_display $0
|
|||
N=8
|
||||
repeat $N {
|
||||
320,200,1,3 rand. 0,255 plasma. 1,0,7 n. 0,255
|
||||
amp:=u(-40,40) freq:=round(u(2,6)) dir$>:=if(u<0.5,-1,1)*round(u(1,2))
|
||||
amp:=u(-40,40) freq:=round(u(2,6)) dir$>:=(u<0.5?-1:1)*round(u(1,2))
|
||||
100%,100%,1,1,'$amp*cos(y*2*pi*$freq/h)'
|
||||
}
|
||||
|
||||
{w+2},100%,1,1,'x' 100%,100%,1,1,'Y=(y-80+15*cos(x/30)+10*sin(x/22));if(Y<0||Y>=50,-1,Y)' a[-2,-1] c
|
||||
{w+2},100%,1,1,'x' 100%,100%,1,1,'Y=(y-80+15*cos(x/30)+10*sin(x/22));Y<0||Y>=50?-1:Y' a[-2,-1] c
|
||||
0 t. "** Welcome to G\47MIC, a powerful image processing framework **",0,0,50,1,255
|
||||
b. 0.5 n. 0,255
|
||||
M:=w
|
||||
|
@ -38503,7 +38503,7 @@ x_plasma : check_display $0
|
|||
|
||||
shift[$a21] 0,${dir$a},0,0,2 # Animate plasma background.
|
||||
shift[$b21] 0,${dir$b},0,0,2
|
||||
if int($t+0.005)>int($t) dir$a:=if(u<0.5,-1,1)*round(u(1,3)) fi
|
||||
if int($t+0.005)>int($t) dir$a:=(u<0.5?-1:1)*round(u(1,3)) fi
|
||||
t:=($t+max(0.005,($|-$tic)))%$N
|
||||
|
||||
# Render text scrolling.
|
||||
|
|
Loading…
Reference in New Issue