Project

General

Profile

Bug #766

Bar command draws bars 1 pixel too small in both directions.

Added by Brian Flanagan 21 days ago. Updated 21 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
Start date:
05/29/2021
Due date:
% Done:

0%

Estimated time:
1.00 h
Affected version:

Description

In the following example, there should be no black lines to the right of or below the bars.

#displayWidth: 800
#displayHeight: 400
Screen Open 0,800,400,32,Lowres
Flash Off : Curs Off
Palette 0,$333333,$777777,$BBBBBB,$FFFFFF,$330000,$770000,$BB0000,$FF0000,$003300,$007700,$00BB00,$00FF00,$000033,$000077,$0000BB,$0000FF,$330033,$770077,$BB00BB,$FF00FF,$333300,$777700,$BBBB00,$FFFF00,$003333,$007777,$00BBBB,$00FFFF

Cls 0
xPos=0
iCol=1
Repeat
    ink iCol
    Bar xPos,0 To xPos+15,Screen Height-2
    Add xPos,16
    Inc iCol : If iCol > 28 Then iCol=1
Until xPos >= Screen Width

Files

Bars Are Too Small.png (57.7 KB) Bars Are Too Small.png Black lines should NOT appear between or below the bars. Brian Flanagan, 05/29/2021 06:06 PM
#1

Updated by Brian Flanagan 21 days ago

There was a typo in the example, but it doesn't affect the results.
The bar command should read:

    Bar xPos,0 To xPos+15,Screen Height-1

There are still black lines below and to the right of each bar, which should not be there.

Also available in: Atom PDF