peter
26-02-2014, 13:51
Hi,
smoothing is a nice effect, without smoothing everything is not so nice.
example: smoothing, xrays-coloured
Uses "ui"
#INCLUDE "gdip.inc"
OpenWindow 640, 480
Randomize
Long x, y
SetSmoothMode 2
While IsWindow(hwnd) And GetAsyncKeyState(27)=0
ClsColor &HFF000000
For y=0 To Height Step 20
For x=0 To Width Step 20
DrawLine x,y,240,69,1,ARGB 255,Rnd(64,255),Rnd(64,255),Rnd(64,255)
Next
Next
Canvas_Redraw
Sleep 10
Wend
ShutDown
Canvas_Window End hwnd
smoothing is a nice effect, without smoothing everything is not so nice.
example: smoothing, xrays-coloured
Uses "ui"
#INCLUDE "gdip.inc"
OpenWindow 640, 480
Randomize
Long x, y
SetSmoothMode 2
While IsWindow(hwnd) And GetAsyncKeyState(27)=0
ClsColor &HFF000000
For y=0 To Height Step 20
For x=0 To Width Step 20
DrawLine x,y,240,69,1,ARGB 255,Rnd(64,255),Rnd(64,255),Rnd(64,255)
Next
Next
Canvas_Redraw
Sleep 10
Wend
ShutDown
Canvas_Window End hwnd