Giter VIP home page Giter VIP logo

lsystems's Introduction

LSystems

kotlin code for rendering LSystems to SVG files

get help:

[09:36][:~/source/LSystems(master)]$ ./gradlew run -PlsArgs="['-h']"

help output:

usage: [-h] [-i ITERATIONS] [-o OUTPUTSIZE] [-u HUE] [-b BRI] [-s LSYSTEM] [-w LINEWIDTH] [-v OUTLINEWIDTH]

optional arguments: -h, --help show this help message and exit

-i ITERATIONS, Number of iterations of the L system --iterations ITERATIONS

-o OUTPUTSIZE, Size of the output svg image (in pixels) --outputSize OUTPUTSIZE

-u HUE, --hue HUE The path to the hue input image

-b BRI, --bri BRI The path to the brightness input image

-s LSYSTEM, What L system to use: KochSnowFlake, Dragon, --lsystem LSYSTEM Hilbert, Sierpinski, SnowFlake, Peano

-w LINEWIDTH, The width of the line --lineWidth LINEWIDTH

-v OUTLINEWIDTH, The width of the outline of the line --outlineWidth OUTLINEWIDTH

[09:36][:~/source/LSystems(master)]$ ./gradlew run -PlsArgs="['-s SnowFlake', '-i 3', '-o 400', '-w 1', '-v 1', '-b che_b.png', '-u che_h.png' ]"

Task :run Init Rendering SnowFlake. Generated fractal in: 2ms Convert to XY in: 1ms Scale XY list in: 1ms Generate midpoints: 1ms Draw spline outlines: 238ms Draw splines: 123ms Draw total: 393ms Done

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/4.10.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 2s 3 actionable tasks: 1 executed, 2 up-to-date

lsystems's People

Contributors

carlemil avatar

Watchers

James Cloos avatar

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.