@cequelldev/luiz-sacilotto-1
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

Luiz Sacilotto - Web Component Art Generator I

Visualization

Install

First install the dependencies

npm i lit @cequelldev/luiz-sacilotto-1

How to use

<luiz-sacilotto-1 
    renderSize="1000"
    angle="0.25" 
    startAngle="0.0"
    sideCount="10"
    moduleMargin="2"
    invert>
</luiz-sacilotto-1>

Parameters:

  • renderSize: The size of the canvas RENDER AREA; The minimum is 100px;
  • angle: The angle (in radians) of the shape(module). The minimum value is 0, and the maximum value is 2;
  • startAngle: The start angle (in radians) of the shape(module). The minimum value is 0. and the maximum value is 2;
  • sideCount: The number of modules in the side of the grid. e.g. 4 means 4x4 grid. The minimum value is 4;
  • moduleMargin: The margin between the modules (aka. gap). The minimum value is 0, and the maximum value is half of the module size;
  • invert: Invert the colors.

Style

You can resize the component by setting the width and height through css with:

luiz-sacilotto-1 {
    --luiz-sacilotto-1-size: 500px;
}

Recommendations

It's recommendend that the renderArea parameter is set to the doubleof the --luiz-sacilotto-1-size css variable. It will improve the resolution of the final image.

Readme

Keywords

none

Package Sidebar

Install

npm i @cequelldev/luiz-sacilotto-1

Weekly Downloads

0

Version

0.1.0

License

none

Unpacked Size

67 kB

Total Files

10

Last publish

Collaborators

  • cequella