Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 01:33 23 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 : Grid

Author Message
Teo1
Newbie

Joined: 06/05/2023
Location: Romania
Posts: 25
Posted: 03:00pm 05 Oct 2024
Copy link to clipboard 
Print this post

I think adding a grid would be useful for easy positioning and alignment of the graphics elements on the TFT surface.
Thanks in advance,
Teo
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6765
Posted: 03:46pm 05 Oct 2024
Copy link to clipboard 
Print this post

Squared paper and a pencil has worked well for me in the past. :)
Mick

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

Joined: 07/11/2023
Location: United Kingdom
Posts: 855
Posted: 04:36pm 05 Oct 2024
Copy link to clipboard 
Print this post

  Teo1 said  I think adding a grid would be useful for easy positioning and alignment of the graphics elements on the TFT surface.
Thanks in advance,
Teo


Prototype in Paint.net or similar?
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3150
Posted: 05:01pm 05 Oct 2024
Copy link to clipboard 
Print this post

Easy enough to program:
CLS
x_span=10
y_span=10
For i=0 To MM.HRes/x_span
 For j=0 To MM.VRes/y_span
   Pixel i*x_span,j*y_span,RGB(white)
 Next j
Next i


Change x_span and y_span to whatever you want.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
Teo1
Newbie

Joined: 06/05/2023
Location: Romania
Posts: 25
Posted: 09:58pm 05 Oct 2024
Copy link to clipboard 
Print this post

Thank you all !
Teo
 
Print this page


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

© JAQ Software 2024