09-15-2025, 08:38 AM
Write a program to draw a rainbow in the GraphicsWindow.
|
Challenge 14 - Rainbow
|
|
09-15-2025, 08:38 AM
Write a program to draw a rainbow in the GraphicsWindow.
09-16-2025, 02:34 PM
Hello Small Basic fans,
here is my rainbow FZSV873.000. Description:
Best regards martmen
09-16-2025, 07:02 PM
Nice effect, isn't red on the outer and violet on the inner edge.
09-18-2025, 03:15 PM
Hello LitDev,
You're right — the colors of a rainbow are different. Here's an example with the correct color selection and order. FZSV873.000-0 I had the color choices created by Copilot. See you soon, martmen
09-18-2025, 04:33 PM
Hello everyone,
In version FZSV873.000-0, I find the colors too bright. I'm providing version FZSV873.000-1 instead. This version uses shapes with increased transparency. See you soon, martmen
09-20-2025, 01:42 PM
Hello friends of the rainbow,
here is my new version FZSV873.000-2. In this version, commands from the LitDev extension are used. At the beginning of the program, there are three variables that are assigned values. These can be used to change the appearance of the rainbow. Have fun experimenting! martmen
10-07-2026, 12:51 AM
Hi everyone, a bit late to this one but I enjoyed the challenge, so here is my take on a rainbow.
Instead of outlines, it fills seven concentric circles from the outside in (red first, violet last), then covers the centre with the sky colour and the bottom half with a hill, so only the arcs remain. Changing the variable "band" changes the thickness of each colour. Code: ' Challenge 14 - RainbowA nice variation: put the loop in a Sub and call it with a smaller radius and lighter colours (e.g. using GraphicsWindow.GetColorFromRGB) to add a faint second rainbow above the first, with the colour order reversed as in a real double rainbow.
Consultor de TI em Portugal (PME). Guia de licenciamento: Office 2024 Professional Plus
|
|
« Next Oldest | Next Newest »
|