Comments (8)
1.04 RC2 honours the plot mode, therefore 80 is a relative move (without drawing anything). For a triangle you should now use PLOT 85 instead of PLOT 80.
from agon-vdp.
@DjPoke have you tried 1.04 RC2? That's got more support for the VDU plot commands than RC1.
from agon-vdp.
@DjPoke have you tried 1.04 RC2? That's got more support for the VDU plot commands than RC1.
Under RC2, with my real AgonLight2, triangles are almost entirely black.
from agon-vdp.
This is a photography of my Agon Light 2 not drawing triangles.
screenshot
from agon-vdp.
Thanks for the information. Just checked on RC2, there is no more the black color issue.
Now, RC2 do like RC1 : a triangle is not drawn exactly at the same place than a line. There is an offset of 1 pixel. (for the same coordinates)
from agon-vdp.
If it can help: drawing a line from x1 to x2 is equal to drawing a line from x1+width-1.
I think the bug is something like this, just one pixel of difference.
from agon-vdp.
there is every chance that there's an off-by-one issue with filled shapes - the underlying graphics system has a concept of "line" and "fill", which doesn't quite fit with what we're doing - so we might need to tweak things slightly
FYI there is now a "rectangle fill" plot command range - they're numbered 0x60-67, so the "absolute plot in current foreground colour" version of that is 0x65 (or 101 in decimal)
from agon-vdp.
finally looked into this
it's not quite the "off-by-one" issue I thought it might be. my quick test in BASIC of drawing a straight (vertical) line and then plotting a triangle over the top of that left the top and bottom pixels of that original line still visible.
I've raised a PR that fixes. the fix is to call drawPath
before fillPath
in the triangle plotting routine - this ensures that the triangle corner pixels do get plotted as expected in my tests, and will cover all other triangle plots to ensure they always cover the same pixels as regular line plots
from agon-vdp.
Related Issues (20)
- Documentation for new screen modes added in VDP 1.03RC2 HOT 1
- Make vertical timing of 640x240 modes the same as 320x240 modes HOT 1
- VDU to get a keycode HOT 2
- Documentation for virtual keycodes
- [bug] Issue with equal/plus key on French keyboard HOT 2
- [Feature request] a VDU command to change only a byte in a bitmap, and some other stuffs HOT 1
- PRINT TAB() should be relative to text viewport. HOT 1
- Feature Request: the ability to copy from screen/buffer to current bitmap HOT 3
- Help wanted - How to get audio status (audio command 1) ? HOT 5
- VDP crash on real Agon but not on the emulator sending bitmaps data HOT 2
- PLOT 69 does not set the current position. HOT 1
- Key up events rollover HOT 1
- Feature Request: class ProxyWaveformGenerator : public WaveformGenerator HOT 2
- Circle terminal position is incorrect. HOT 3
- When using double-buffered modes, keyboard input is not visible HOT 3
- Feature request: Changing video modes should preserver colour scheme HOT 2
- Feature request: expose the selected FG/BG colours HOT 5
- Agon locks up when POS and/or VPOS is used with VDU 31 HOT 2
- Leave firmware to Steve.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from agon-vdp.