-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|706|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Snippet Home -> Misc


 
Dan
Created : 16 June 2018
Edited : 17 June 2018
System : Windows
Language : Blitz

Ploted

Ploted

Latest Update

This code was first coded on AmosPro on Amiga, then it was converted to BasicBasic on Win3.11 and lastly for Blitzbasic on Windows.

It was coded during a time when i learned (by myself) to Program. It was, actually, never meant to be released.
But whatever, here it is.

What it does:

Draws colored dots on screen, which is split into 2 parts. The dot moves from its starting point randomly to up/down/left/right side.

Left half of the screen gets erased, after a set amount of dots, making of it an snakelike effect, while the right side retain the dots.
Overall it's more like a Screensaver.

 

Comments


Saturday, 16 June 2018, 12:36
Jayenkai
Nice and swirly!

Tip : Massive speedup if you move the "Line 320, 0,320, ymax" up, to just above the buffer change.
Drawing lines to imagebuffers is slow as hell!!

Additionally, if you enclose the "Draw to Backbuffer" chunk into an if, and only call it every n-frames, you can bulk draw a lot of the stuff before drawing it to the screen.

> Reveal 🔎
Sunday, 17 June 2018, 02:40
Dan
Cool, thanks for the ideas, i'v updated the code to match it.

Now you can use Arrow Up/Down Keys or Numpad +/- to speedup the drawing.

The Speed of 1 would be the speed on the Amiga.

Although i haven't noticed the speed change by drawing the Line on the backbuffer. Maybe it is up to the Graphic Card ?
Sunday, 17 June 2018, 02:45
Jayenkai
Quite Possibly.
I know my old NVidia card used to struggle to do all kinds of things, but later driver updates fixed quite a lot. Perhaps Intel (my current onboard gfx) never got around to those fixes.