Spider Posted May 16, 2021 Report Share Posted May 16, 2021 As title. 'Chat' is after all really the only area of the forum where 'off topic' (and on topic!) discussion is welcome. 🙂 This is -Best- ran at high emulation speed (at least four times) Standard .sna snapshot, pic of Basic and small 20s/192kb video included, running at a higher speed. Press a key to start. Safe to 'break' rnd_blocks.sna  Spoiler rnd_blocks.mp4 Basic very simple. Line 10 sets sane colours. Line 20 draws random blocks Line 30 erases them by a random number setting them back to black, but not all of them... Line 40 jumps back to line 20 to repeat it again. MtM, jetsetdanny and IRF 3 Quote Link to comment Share on other sites More sharing options...
Spider Posted May 16, 2021 Author Report Share Posted May 16, 2021 To clash or not. Post contains two video's both 4.2mb and approx 40s in length. They are old and were recorded with the (free) Screencast app at the time. But worth a watch 😉 Referring to the Spectrum Basic manual (the one included with all machines) this is the 48K version so its Chapter 17, Page 122. Here's a small excerpt: Here is how it looks on the original Speccies (all of them), colour clash et al because you cannot have more than one ink and one paper choice per 8x8 cell. Note I'm using 'SE Basic' for this hence different cursor and font, but its quite similar... Spoiler gfx_clash.mp4  Here is how it looks -without- any colour clash 😮 Same program. Pause it at start to confirm if in doubt 😉 Spoiler gfx_no_clash.mp4 Super Speccy 😉 MtM 1 Quote Link to comment Share on other sites More sharing options...
Spider Posted May 19, 2021 Author Report Share Posted May 19, 2021 If anyone else has any very small 'simple automated display' routines, would love to see. Really needs to be ones where no interaction is required and they continue to run. Quote Link to comment Share on other sites More sharing options...
Spider Posted May 27, 2021 Author Report Share Posted May 27, 2021 I did have something I whipped up the other day but the snapshot (z80) crashed in all emulators 😞 I was annoyed enough to bin it. I'll sort a few things out when I can. 😄 Quote Link to comment Share on other sites More sharing options...
Norman Sword Posted May 28, 2021 Report Share Posted May 28, 2021 I write in assembler. This is called shape. Surprisingly it is running flat out with no delays. Shape.tap Spider and jetsetdanny 1 1 Quote Link to comment Share on other sites More sharing options...
Norman Sword Posted May 29, 2021 Report Share Posted May 29, 2021 (edited) I looked at the code from the above - it was not quite what I wanted - This is more how I wanted it to look. The struggle between areas of colour, for domination. ======================================== The routine fills the screen with colour. Then it selects a (random) position and checks to see what colour is dominant in that area. The dominant colour, then fills the local area. The selection of areas continues for 10,000 loops. Then the whole process is repeated. Shape2.tap Edited May 29, 2021 by Norman Sword Clarification of terminology. IRF and Spider 1 1 Quote Link to comment Share on other sites More sharing options...
IRF Posted May 29, 2021 Report Share Posted May 29, 2021 Nice mix of BRIGHT and non-BRIGHT colours in the latter file. 🙂 Spider 1 Quote Link to comment Share on other sites More sharing options...
Spider Posted May 30, 2021 Author Report Share Posted May 30, 2021 Excellent 🙂 Been exceptionally busy with "other things" both here and in real life so not had any time to rewrite a new routine or two for this topic yet. Quote Link to comment Share on other sites More sharing options...
JianYang Posted June 3, 2021 Report Share Posted June 3, 2021 Looks best from a distance or with glasses off. Â colourful.zip Spider 1 Quote Link to comment Share on other sites More sharing options...
Norman Sword Posted June 3, 2021 Report Share Posted June 3, 2021 (edited) Very similar - written in assembler - I took the visual idea of above and wrote the code in assembler.  twirl.tap the 2nd version, is the progression in complexity twirl2.tap  the 3rd version plays with speed as well twirl3.tap The very last version - which changes the checker pattern The real purpose of writing this was to show the size difference between C and assembler.  twirl4.tap  Footnote. Each of these tap files contains a header and a basic loader. All the running code data is contained within the assembled file. The size of each version is 121 bytes less than the files size. E.g. Twirl tap has 367 bytes of code and data. -- Twirl2.tap has 387 bytes of code and data -- etc..  Edited June 5, 2021 by Norman Sword added a 2nd version. JianYang and Spider 2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.