Basic Gradient Extension

Author @Anthony



The basic gradient is an extension that enables you to interact with gradient drawing features. Ever wondered how the gradients in game or application are created? Well atleast in Stencyl , it's possible now!! . Now you can abandon your heavy-data workarounds for gradients , and use this extension for creating gradient drawings and fillings in stencyl. The Basic gradient Extension currently draws 8 shapes with custom gradient Draw and custom Gradient Fill. It is useful almost every kind of game. Furthermore it also reduces the game size of yours by drawing gradients in the game instead of importing them as images in stencyl.
Though the blocks are easy to understand in the first sight, below is the block description of this extension. If there is anything uncleared, freely ask them in the comments in this page.



    see here how to install an extension




Blocks


    Be sure to use these blocks in the When Drawing Event


Sets the gradient colors to be drawn


Sets the stroke thickness of the gradient drawings


Sets the angle of the gradient drawings


Sets the opacities of the two gradient colors.


Draws a line from the desired start and end points.


Draws/Fills a rectangle


Draws/Fills a rounded rectangle


Draws/Fills a circle


Draws/Fills an ellipse


Draws/Fills a bezier curve using the desired three coords.


Gradient Angle
In order to clarify those who yet dont understood gradient's "angle" in some of the parameters, it's orientation can be understood by this image :


Version History [2.0]

Launch : v 1.0 SS Edit : Drawing is now done by coordinates relative to scene
Revamp: 1)improved scale compatibility 2)Reduced block lengths 3)added draw/fill to some appropriate blocks. 4)added separate blocks to set gradient parameters like gradient colors, angle, stroke thickness, opacities. 5)added Draw/Fill Curve block

That's it! If you have any doubts you encounter while using this extension, simply ask below :)

Comments

  1. The most useful extension on this site
    thanks very much !

    ReplyDelete

Post a Comment