B4A Library ParsTrianglify(Trianglify)

Hi ,it wraps this Github project.

Trianglify is an Android library that helps creates views with beautiful patterns.

Highly customizable library to generate beautiful triangle art views for android.

2w9O7Ct.png
 

Attachments

  • ParsTrianglify.zip
    37 KB · Views: 294
Last edited:

Star-Dust

Expert
Licensed User
Longtime User
I have tried it and it is very interesting.
Can you describe the library, events, methods, and properties better?
Can I get the resulting image with the backGround property?

Thank you
 

mshafiee110

Active Member
Licensed User
Longtime User
I have tried it and it is very interesting.
Can you describe the library, events, methods, and properties better?
Can I get the resulting image with the backGround property?

Thank you

Your Welcome,
ans1:
ParsTrianglify
Author:
ME_Esmaiel Shafiee
Version: 1
  • ParsTrianglify
    Fields:
    • ba As BA
    Methods:
    • BringToFront
    • DesignerCreateView (base As PanelWrapper, lw As LabelWrapper, props As Map)
    • Initialize (EventName As String)
    • Invalidate
    • Invalidate2 (arg0 As Rect)
    • Invalidate3 (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
    • IsInitialized As Boolean
    • RemoveView
    • RequestFocus As Boolean
    • SendToBack
    • SetBackgroundImage (arg0 As Bitmap)
    • SetColorAnimated (arg0 As Int, arg1 As Int, arg2 As Int)
    • SetLayout (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
    • SetLayoutAnimated (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int, arg4 As Int)
    • SetVisibleAnimated (arg0 As Int, arg1 As Boolean)
    • clearView
      This method clears the triangulation and sets the view state to NULL_TRIANGULATION.
    • isDrawStrokeEnabled As Boolean
    • isFillTriangle As Boolean
    • isFillViewCompletely As Boolean
    • isRandomColoringEnabled As Boolean
    • setBleedX (bleedX As Int) As TrianglifyView
    • setBleedY (bleedY As Int) As TrianglifyView
    • setCellSize (cellSize As Int) As TrianglifyView
    • setDrawStrokeEnabled (drawStroke As Boolean) As TrianglifyView
    • setFillTriangle (fillTriangle As Boolean) As TrianglifyView
    • setFillViewCompletely (fillViewCompletely As Boolean) As TrianglifyView
    • setGridHeight (gridHeight As Int) As TrianglifyView
    • setGridWidth (gridWidth As Int) As TrianglifyView
    • setRandomColoring (randomColoring As Boolean) As TrianglifyView
    • setTypeGrid (typeGrid As Int) As TrianglifyView
    • setVariance (variance As Int) As TrianglifyView
    • smartUpdate
      smartUpdate method ensures the increase in performance by generating only the necessary changes in triangulation.
      According to the value of viewState, it makes the necessary method call.
    Properties:
    • Background As Drawable
    • BleedX As Int [read only]
    • BleedY As Int [read only]
    • CellSize As Int [read only]
    • Color As Int [write only]
    • ColorsPalette() As Int [write only]
      Colors array length should exactly be 9
    • Enabled As Boolean
    • GridHeight As Int [read only]
    • GridWidth As Int [read only]
    • Height As Int
    • Left As Int
    • Padding()() As Int
    • Palette As Palette
      DEFAULT_PALETTE_COUNT = 28
    • Parent As Object [read only]
    • Tag As Object
    • Top As Int
    • TypeGrid As Int [read only]
    • Variance As Int [read only]
    • Visible As Boolean
    • Width As Int


ans2: this is an custom view(panel),you can capture it and use it....
 

Star-Dust

Expert
Licensed User
Longtime User
Thanks :):):)
 
Top