We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


tiagomoreira41
(Junior Member)
**

Registration Date: 10-07-2026
Date of Birth: Not Specified
Local Time: 11-11-2026 at 06:39 PM
Status: Offline

tiagomoreira41's Forum Info
Joined: 10-07-2026
Last Visit: 10-07-2026, 12:52 AM
Total Posts: 1 (0.03 posts per day | 0.04 percent of total posts)
(Find All Posts)
Total Threads: 0 (0 threads per day | 0 percent of total threads)
Time Spent Online: 26 Minutes, 40 Seconds
Members Referred: 0
Total Likes Received: 3 (0.08 per day | 0.26 percent of total 1165)
(Find All Threads Liked For — Find All Posts Liked For)
Total Likes Given: 0 (0 per day | 0 percent of total 1165)
Reputation: 0 [Details]
  
tiagomoreira41's Signature
Consultor de TI em Portugal (PME). Guia de licenciamento: Office 2024 Professional Plus

tiagomoreira41's Most Liked Post
Post Subject Post Date/Time Numbers of Likes
RE: Challenge 14 - Rainbow 10-07-2026, 12:51 AM 3
Thread Subject Forum Name
Challenge 14 - Rainbow Small Basic
Challenges
Post Message
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 - Rainbow GraphicsWindow.Title = "Rainbow" GraphicsWindow.Width = 640 GraphicsWindow.Height = 380 sky = "LightSkyBlue" GraphicsWindow.BackgroundColor = sky GraphicsWindow.PenWidth = 0 colors = "1=Red;2=Orange;3=Yellow;4=Green;5=Blue;6=Indigo;7=Violet;" cx = 320 cy = 330 r = 280 band = 20 For i = 1 To Array.GetItemCount(colors) GraphicsWindow.BrushColor = colors[i] GraphicsWindow.FillEllipse(cx - r, cy - r, 2 * r, 2 * r) r = r - band EndFor ' hollow out the centre GraphicsWindow.BrushColor = sky GraphicsWindow.FillEllipse(cx - r, cy - r, 2 * r, 2 * r) ' ground GraphicsWindow.BrushColor = "ForestGreen" GraphicsWindow.FillRectangle(0, cy, GraphicsWindow.Width, GraphicsWindow.Height - cy) -- A 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.

tiagomoreira41's Received and Given Likes
  Likes Received Likes Given
Last week 0 0
Last month 0 0
Last 3 months 3 0
Last 6 months 3 0
Last 12 months 3 0
All Time 3 0
 
Most liked by
litdev 1 33%
z-s 1 33%
AbsoluteBeginner 1 33%
 
Most liked
tiagomoreira41 has not yet liked.