B4A Library ParsTrianglify(Trianglify)

Discussion in 'Additional libraries, classes and official updates' started by mshafiee110, May 27, 2017.

  1. mshafiee110

    mshafiee110 Active Member Licensed User

    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.

    [​IMG]
     

    Attached Files:

    Last edited: Nov 26, 2019
  2. Star-Dust

    Star-Dust Expert Licensed 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 likes this.
  3. mshafiee110

    mshafiee110 Active Member Licensed User

    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....
     
  4. Star-Dust

    Star-Dust Expert Licensed User

    Thanks :):):)
     
    mshafiee110 likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice