Simple drawing that fades to background.
#5
When used just right I think the LINE box screen fading can add a new twist to some otherwise boring screen savers.  Adds a nice fading tail on bouncing objects, a blurry effect.  Some more playing around below.  Just some short graphics fun...

- Dav

Code: (Select All)
SCREEN _NEWIMAGE(800, 600, 32)

DO
    v = RND * 100 + 5
    FOR t = 1 TO (_WIDTH / 2) STEP v
        x1 = (COS(t) * z) + (_WIDTH / 2)
        y1 = (SIN(t) * z) + (_HEIGHT / 2)
        c = _RGB(r, g, b)
        CIRCLE (x1, y1), z / v, c
        PAINT (x1, y1), c
        z = z + 1: IF z > (_WIDTH / 2) * 1.1 THEN z = 1
        r = r + 1: IF r > 255 THEN r = RND * 255
        g = g + 1: IF g > 255 THEN g = RND * 255
        b = b + 1: IF b > 255 THEN b = RND * 255
    NEXT
    LINE (0, 0)-(_WIDTH, _HEIGHT), _RGBA(0, 0, 0, 15), BF
    _DISPLAY
    _LIMIT 30
LOOP

Find my programs here in Dav's QB64 Corner
Reply


Messages In This Thread
Simple drawing that fades to background. - by Dav - 11-04-2022, 10:27 PM
RE: Simple drawing that fades to background. - by Dav - 11-05-2022, 03:09 AM



Users browsing this thread: 4 Guest(s)