Giter Site home page Giter Site logo

davidhollis / cardboard-rs Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 559 KB

A command-line utility for rendering playtest cards for custom board and card games, as individual print-ready images or print-and-play PDFs

License: BSD 3-Clause "New" or "Revised" License

Rust 100.00%

cardboard-rs's Introduction

cardboard

A command-line utility for rapidly prototyping board and card games [, eventually!]

Developing

There's not much here yet, but it's relatively vanilla Rust: any development environment that's capable of working with cargo should be just fine. To get started:

cargo build
cargo test

cardboard-rs's People

Contributors

davidhollis avatar

Watchers

 avatar James Cloos avatar

cardboard-rs's Issues

Load card sets

Read in excel sheets, csvs, yaml documents, and kdl documents and produce arrays of card contexts.

Add models for other kinds of shapes

Add models for:

  • corner_radius=n property on the existing rectangle
  • triangle x1 y1 x2 y2 x3 y3
  • polygon nsides cx cy radius [angle]
  • star npoints cx cy in-radius out-radius [angle]
  • ellipse cx cy x-radius y-radius [angle]
  • circle cx cy radius
  • path { [<path-operation>]* [<path-style>]* }

Add model for group

Add Group container model with transformation, clipping, and support for only-if

Expand Font model

Add support for different forms of text formatting supported by whatever rendering engine we end up going with

Add rendering

Add a rendering engine (almost certainly either skia or cairo) that's capable of producing a png from a layout and a context

Add handlebars templating

Add a global handlebars instance (probably initialized with lazy_static!) and then hook it up to layout::templates::TemplateAwareString.

Add config model

Add a config model and CLI that includes options to control the rendering pipeline, e.g.:

  • don't draw anything, just validate the model
  • just draw bounding boxes for everything
  • include the cut and safe lines
  • for single cards, clip to the cut line

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.