Git Product home page Git Product logo

circlewriter's People

Contributors

tayacan avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

circlewriter's Issues

Bounding box should leave a few pixels of space on each side

The lines are 2px wide, so sight now, the bounding box actually cuts off a little bit.

It would be fine to leave 2-5px of space on each side of the drawing - that's more than is strictly speaking necessary to fix the issue, but would probably look nice.

Translate Circ

Interpret the structure from #12, possibly via the data types currently defined in Circles.hs, into an svg file.

Make ADTs for representing SVG elements

Right now, SVG elements are represented by strings, which is terrible.

We want:

  • A type SvgElement, which contains the name of the tag, and its attributes
  • A type SvgAttribute for representing... you guessed it.
  • A rendering function, which can take an SvgElement or a [SvgElement]

We don't need SvgElements to be recursive for now - all we want is a flat list of our objects.

As part of this refactoring, we should also make our Drawables independant of positions. Instead, draw :: a -> SVG should be changed to drawAt :: Point -> a -> SVG. This will make it easier to reuse elements.

Arrow heads

Should be possible to draw a triangle with white fill (so not just three lines forming a triangle).

Type must specify both size and orientation. Triangle should be equilateral.

ADT for Circ

Create an ADT for representing Circ drawings. Should have good support for applying transforms to shapes.

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.