CPCWiki forum

General Category => Programming => Topic started by: mr_lou on 16:37, 07 July 17

Title: Create new colours + scanlines on LCD screens with BASIC!
Post by: mr_lou on 16:37, 07 July 17
Ok, probably useless, and also probably known to most, but I thought this is worth sharing at least.

I think most of us are using modern monitors nowadays? LCD rather than CRT, right?

This actually makes it possible to do some trickery regarding colours, fake-creating some that the CPC doesn't really have - in BASIC!

The way to do is simple: Set inks and border to blink between two colours you wanna mix. And set a speed ink 1,1. Example:

SPEED INK 1,1
INK 0,6,24 ' New orange colour (with "scanlines")
BORDER 15 ' For comparison

Now the two colours will blink at 50 hz on a 60 hz monitor, resulting in a scanline-like look with colours you've never seen on the CPC before.  :)

Mixing the right colours can also create some groovy font light/shadow effects.

Useless or kinda fun? You decide.
Title: Re: Create new colours + scanlines on LCD screens with BASIC!
Post by: Gryzor on 08:45, 25 August 17
Useless or not, it's fun :) Pity I only use my CPCs with CRTs - these days, with a 1084...
Title: Re: Create new colours + scanlines on LCD screens with BASIC!
Post by: ASiC on 09:48, 25 August 17
Quote from: Gryzor on 08:45, 25 August 17
Pity I only use my CPCs with CRTs - these days, with a 1084...


Poor you...
I can swap your 1084 with a 32" LCD if you like  ;D
Title: Re: Create new colours + scanlines on LCD screens with BASIC!
Post by: Gryzor on 10:09, 25 August 17
Eheheh... good try :D


[ot]One of the reasons I love it so much is because it's one of those models that also have a Green button, so I can turn it into a green monitor! Amazing![/ot]
Title: Re: Create new colours + scanlines on LCD screens with BASIC!
Post by: AMSDOS on 02:43, 26 August 17
Just acknowledging the use of second INK colours and the use of SPEED INK has helped me to improve the coding for next years BASIC 10-Liner Compo.
Powered by SMFPacks Menu Editor Mod