Project

General

Profile

Actions

Bug #464

open

In Rain (n,l) =c, c is incorrectly limited to the range of 0 to 255, when it should be 0-$FFF for Amiga and 0-$FFFFFF for AOZ.

Added by Brian Flanagan about 4 years ago. Updated about 4 years ago.

Status:
Feedback
Priority:
Normal
Target version:
Start date:
09/03/2020
Due date:
% Done:

0%

Estimated time:
1:00 h
Affected version:

Description

Example:

Screen Open 0,320,256,32,Lowres
Cls 0
Set Rainbow 0,0,255,"","",""
Rainbow 0,0,0,255
For y=0 to 255
  Rain(0,y) = Rnd($FFF)
Next y
Wait Key

The result is an illegal function call.
The result should be a rainbow with random colors.
Limiting it to Rnd($FF) will correct the function, but of course, will limit the color to shades of blue for both platforms.

Actions

Also available in: Atom PDF