Doodle

Anything QL Software or Programming Related.
User avatar
dilwyn
Mr QL
Posts: 2753
Joined: Wed Dec 01, 2010 10:39 pm

Re: Doodle

Post by dilwyn »

Nice, but the colours hurt my eyes. Trying to read green, white and magenta on that black and white stipple background wasn't easy on this monitor at least.

But then again, I moan when PC programmers use light grey on black grey, so maybe I'm just fussy.

Tombstoning has been a bit of a sad issue here in Wales, places such as Llangollen, where they dive into rivers or pools and injure themselves (or worse).

Other than that, nice graphics and a cute little demo.


stevepoole
Super Gold Card
Posts: 712
Joined: Mon Nov 24, 2014 2:03 pm

Re: Doodle

Post by stevepoole »

Hi Dilwyn,

Sorry about the colour scheme, I suppose it all depends on the monitor hardware being used ?

Now for something different : Drawing rectangular areas of colour on screen :

Under QDOS, BLOCK drawing was fastest, but under SMSQ/E, this appears to be no longer the case ! So I experimented with speeds of other methods :

Using BLOCKs, WINDOWs and FILLed LINEs, all doing the same patterns associated with PRINTing in them... and the similar timing results surprised me :

So why not use WINDOWs more often to draw boxes in programs ? There are nothing but advantages !

Steve
Boxes_bas.zip
(893 Bytes) Downloaded 73 times
___________________


stevepoole
Super Gold Card
Posts: 712
Joined: Mon Nov 24, 2014 2:03 pm

Re: Doodle

Post by stevepoole »

Hi again,

Here's an animation about the bloke and the desert island....

If the heatwave here in the alps continues, I may do a tenth doodle too.

Stay cool... Steve.
isle_bas.zip
(1.32 KiB) Downloaded 76 times
________________________________________


stevepoole
Super Gold Card
Posts: 712
Joined: Mon Nov 24, 2014 2:03 pm

Re: Doodle

Post by stevepoole »

Hi Everyone,

On holiday, I cannot test these doodles on my QL, but they run fine on my QPC2, so probably under SMSQ/E.

In this10th one, Harry Potter encounters bugs on the web, so wait to see the two possible outcomes...

Steve.
web_bas.zip
(1.41 KiB) Downloaded 76 times


stevepoole
Super Gold Card
Posts: 712
Joined: Mon Nov 24, 2014 2:03 pm

Re: Doodle

Post by stevepoole »

Hello again,

Here's an animation of full Technicolour Dreaming.... (Doodle 11).

Steve.
Dream_bas.zip
(504 Bytes) Downloaded 73 times
___________________________________________


stevepoole
Super Gold Card
Posts: 712
Joined: Mon Nov 24, 2014 2:03 pm

Re: Doodle

Post by stevepoole »

Hi,

This next Doodle is an attempt to simulate Warp Drive into deep space, as seen in 2001 a Space Odyssee...

It needed special treatment to get smooth acceleration, as PAUSE units are far too long to be useable.

Tested under QPC2, where it runs very fast indeed.

Steve.
Warp_bas .zip
(508 Bytes) Downloaded 66 times
________________


User avatar
RalfR
Aurora
Posts: 871
Joined: Fri Jun 15, 2018 8:58 pm

Re: Doodle

Post by RalfR »

Looks very good and smoth, just a little bit flickering, but not so serious.


4E75 7000
User avatar
dilwyn
Mr QL
Posts: 2753
Joined: Wed Dec 01, 2010 10:39 pm

Re: Doodle

Post by dilwyn »

Nice use of colour and a good demo of the ARC and PAN commands. Like how it speeds up after a while. Very effective on QPC2 at least.
Very small point, PAUSE-1 needn't be used (line 310), just PAUSE without a parameter is equivalent to PAUSE-1 and slightly shorter to code of course.


User avatar
RalfR
Aurora
Posts: 871
Joined: Fri Jun 15, 2018 8:58 pm

Re: Doodle

Post by RalfR »

dilwyn wrote:Nice use of colour and a good demo of the ARC and PAN commands. Like how it speeds up after a while. Very effective on QPC2 at least.
Very small point, PAUSE-1 needn't be used (line 310), just PAUSE without a parameter is equivalent to PAUSE-1 and slightly shorter to code of course.
Ah...good idea!


4E75 7000
stevepoole
Super Gold Card
Posts: 712
Joined: Mon Nov 24, 2014 2:03 pm

Re: Doodle

Post by stevepoole »

Hi Ralph,

Maybe the flickering depends on your computer's speed rating ?

Try changing line 180 H=100000 to much lower values if you have a slower PC than mine... (Say h=10000), or the opposite for fast PCs !

H is the Hold value that replaces PAUSEs.

Steve.
__________


Post Reply