Author Topic: Create new colours + scanlines on LCD screens with BASIC!  (Read 1184 times)

0 Members and 1 Guest are viewing this topic.

Offline mr_lou

  • 6128 Plus
  • ******
  • Posts: 3.185
  • Country: dk
    • index.php?action=treasury
    • 8-bit Memoirs - a Blu-ray diskmag-like eBook about the 8-bit era
  • Liked: 1356
  • Likes Given: 2666
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.

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 16.557
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
  • Liked: 3796
  • Likes Given: 6802
Re: Create new colours + scanlines on LCD screens with BASIC!
« Reply #1 on: 10:45, 25 August 17 »
Useless or not, it's fun :) Pity I only use my CPCs with CRTs - these days, with a 1084...

Offline ASiC

  • Supporter
  • CPC664
  • *
  • Posts: 120
  • Country: gb
  • Liked: 75
  • Likes Given: 318
Re: Create new colours + scanlines on LCD screens with BASIC!
« Reply #2 on: 11:48, 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

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 16.557
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
  • Liked: 3796
  • Likes Given: 6802
Re: Create new colours + scanlines on LCD screens with BASIC!
« Reply #3 on: 12:09, 25 August 17 »
Eheheh... good try :D


Off-Topic:
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!

Offline AMSDOS

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.939
  • Country: au
    • index.php?action=treasury
    • Programs for Turbo Pascal 3
  • Liked: 1157
  • Likes Given: 1924
Re: Create new colours + scanlines on LCD screens with BASIC!
« Reply #4 on: 04: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.
* Using the old Amstrad Languages :D   * with the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3