GithubHelp home page GithubHelp logo

Comments (8)

lennart-benschop avatar lennart-benschop commented on July 22, 2024 1

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.

breakintoprogram avatar breakintoprogram commented on July 22, 2024

@DjPoke have you tried 1.04 RC2? That's got more support for the VDU plot commands than RC1.

from agon-vdp.

DjPoke avatar DjPoke commented on July 22, 2024

@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.

DjPoke avatar DjPoke commented on July 22, 2024

This is a photography of my Agon Light 2 not drawing triangles.
screenshot

from agon-vdp.

DjPoke avatar DjPoke commented on July 22, 2024

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.

DjPoke avatar DjPoke commented on July 22, 2024

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.

stevesims avatar stevesims commented on July 22, 2024

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.

stevesims avatar stevesims commented on July 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.