Sorry, I missed the answer :[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Sat Aug 19, 2023 8:17 pmThat time is normal, the monitor takes few seconds to synchronise the signal. I forgot to put the pause. For the padding, you can try yourself. Put the value at 500 and then set the colour for the text and the background and then draw the text in the middle of the screen[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Sat Aug 19, 2023 6:33 pm updated to version Annex32-S3 CAN DMT VGA 1.51.1 qio opi LFS. No problem.
Executed the first two examples without problems, with the exception that I had to enter "pause 3000" instructions before the vga.show to see the texts "Transparent Text" and ""Sprites demo 1". If not, skip directly to while loops.
I don't know if it's because of my monitor, but it always happens to me. From the time I launch a program until the image appears, a few seconds pass with a black screen. I've gotten used to inserting those pauses at the beginning of my programs.
On the other hand, can you explain to me the use of the VGA.TEXT.PADDING align statement that appears in the help?
There is an error in the documentation, the parameter is not align but width
So the command is VGA.TEXT.PADDING width
- width: This parameter signifies the desired width for the drawn text. It defines the horizontal space that the text will occupy on the screen. By specifying this width, you establish a consistent bounding box for the text to fit within.
The main purpose of "VGA.TEXT.PADDING width" is to ensure that text maintains a consistent visual width, regardless of the content being displayed. This functionality is especially important when replacing or updating text, as it prevents irregular spacing and ensures uniformity in text layout.
By adjusting the width parameter, you achieve a padding effect around the text. This padding ensures that the text occupies the designated width, providing a neat and organized appearance.