Giter Club home page Giter Club logo

beauty-of-flower's Introduction

Beauty of flower

This script generates beautiful flower of life patterns.

Usage:

Usage: flower [options]

Options:

  -h, --help                output usage information
  -o, --out,       <file>   Required: output filename
  -l, --layers     <n>      Required: layers above seed
  -r, --radius     <n>      Required: circles radius
  -h, --height     <n>      image height
  -w, --width      <n>      image width
  -p, --palette    <name>   color palette name
  --color-layers   <n>      number of color layers
  --stroke-width   <n>      stroke lines width
  --stroke-color   <color>  stroke lines color
  --bg-color       <color>  background color
  --stroke-opacity <n>      stroke lines opacity
  --glow-opacity   <n>      glow effect opacity
  --glow-size      <n>      glow effect size
  --disable-glow            disable glow effect
  --disable-background      disable background
  --disable-stroke          disable stroke lines
  --disable-colors          disable coloring layers
  --disable-mask            disable circle mask
  --disable-clone           disable pallete array cloning
  --reverse-palette         reverse color palette

Running this:

./flower.js --layers 4 --palette fire --radius 35 --out examples/fire.svg 

will generate the following svg image:

fire

Tweaking some command line arguments will produce slightly different result

./flower.js --layers 4 --palette fire --radius 35 --glow-opacity 1 \
            --stroke-color "#F2B705" --stroke-width 2 --reverse-palette \
            --bg-color "#F2B705" --out examples/fire-custom.svg

fire-custom

Other color palettes are also available: fire, rainbow, ocean, vitamin, zen, leaf, sky and love.

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.