Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 08:36 28 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : picomitevga - mode and color commands result in black screen?

     Page 2 of 2    
Author Message
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6798
Posted: 06:44am 12 Jul 2023
Copy link to clipboard 
Print this post

The other thing, which I don't think anyone has pointed out, is that the PicoMite only has two graphic modes:

Mode 1 - 640 x 480 - 1 colour
(i.e. you can have a common background colour but the foreground pixels are either on or off and are all the same colour)

Mode 2 - 320 x 240 - 16 colours
(i.e. every pixel can be coloured individually)

In Mode 1 the TILE system gives you the ability to get low resolution colour.
Each character cell can have a background and a foreground colour, and Font 3 characters are the same size as a character cell. So you can have coloured text, but any graphics need very careful planning.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3150
Posted: 01:49pm 12 Jul 2023
Copy link to clipboard 
Print this post

  Martin H. said  Even with just 16 Colors you are able to draw colorful pictures with small Code


Very cool, Martin--thanks for posting. Can you explain the derivation and use of the magic numbers, "CR = -.798" and "CI = .1618"?
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
Martin H.

Guru

Joined: 04/06/2022
Location: Germany
Posts: 1114
Posted: 02:43pm 12 Jul 2023
Copy link to clipboard 
Print this post

  lizby said   Can you explain the derivation and use of the magic numbers, "CR = -.798" and "CI = .1618"?


No, sadly not ...(I'm more into Boolean algebra than complex numbers).
But I think they should be the real part, and the imaginary part of the complex number.

I just translated the QBasic Source from
https://rosettacode.org/wiki/Julia_set#QBasic
to MMBasic.
So far I've experimented a bit with the value of escala for zooming and
maxiter for computational depth.

At the moment, the Pico calculates a sequence of images that zooms into the Julia set. You can try out what happens when you change the values.

Cheers
Mart!n
Edited 2023-07-13 01:12 by Martin H.
'no comment
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9129
Posted: 03:11pm 12 Jul 2023
Copy link to clipboard 
Print this post

  Quote  and Font 3 characters are the same size as a character cell.


Font 1 characters are the same size as a character cell (12x8)
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3804
Posted: 03:37pm 12 Jul 2023
Copy link to clipboard 
Print this post

  lizby said  Can you explain the derivation and use of the magic numbers, "CR = -.798" and "CI = .1618"?

I think (but am not sure) you are in effect viewing part of a potentially huge fractal area and this selects the part (or at least where the calculations start).

Try different values which are almost the same and see if the picture is recognisably near the original - maybe?

John
Edited 2023-07-13 01:38 by JohnS
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6798
Posted: 06:10pm 12 Jul 2023
Copy link to clipboard 
Print this post

oops.... Font 1, correct. It's also the default font, which is quite handy. :)
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Martin H.

Guru

Joined: 04/06/2022
Location: Germany
Posts: 1114
Posted: 10:32am 13 Jul 2023
Copy link to clipboard 
Print this post

  Martin H. said  
So far I've experimented a bit with the value of escala for zooming and
maxiter for computational depth.
At the moment, the Pico calculates a sequence of images that zooms into the Julia set.

here is the Animation, the result of ~12 Hours pico calculation at 378MHz
julia-Anni.zip


Edited 2023-07-13 20:56 by Martin H.
'no comment
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3150
Posted: 10:48am 14 Jul 2023
Copy link to clipboard 
Print this post

John--thanks for your probably correct stab. I was curious about the odd numbers, but not enough so to actually experiment.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
     Page 2 of 2    
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024