Bug #705
Circles draw too small. Circles off-center (because they're too small) Straight Lines are diagonal. Lines drawn are too thick.
Start date:
03/27/2021
Due date:
% Done:
0%
Estimated time:
8:00 h
Affected version:
Description
These used to be mostly working. Now they're really messed up.
Tested in 1.0.0 (B6a). These problems exist in BOTH manifests.
- Straight lines are drawing diagonally.
- Circles are drawn off center... probably because they're too small by 1px in both X and Y directions.
- Boxes and circles with the same radius are drawn different sizes.
- Lines are drawn too thick. (This has always been a problem.)
Plot seems to be the one drawing command that is working properly.
Example:
#manifest: "amiga" #displayWidth: 352 #displayHeight: 288 Screen Open 0,352,288,32,Lowres Screen Scale 1.4,1.4 If Manifest$="amiga" Palette 0,$F00,$0F0,$00F,$FF0,$0FF,$F0F,$FFF Else Palette 0,$FF0000,$00FF00,$0000FF,$FFFF00,$00FFFF,$FF00FF,$FFFFFF End If Flash Off : Curs Off : Cls 0 For R=1 To 10 ' radius X=(R-1)*22+R*2 ' horizontal center of box / circle Y=23 ' vertical center of box / circle Ink 1 Circle X,Y,R // Red circle should be same size as box. // Upper left corner of circle is correct, but lower right is not. Ink 7 : Draw X-R,Y To X+R,Y : Draw X,Y-R To X,Y+R // White lines should be straight! Ink 0 : Plot X,Y // Draw Black dot at center of circle Ink 2 : Box X-R,Y-R To X+R,Y+R // Green box Next R Wait Key
Switch the manifest tag from "amiga" to "aoz".
You'll see that the problems exist in both manifests.