I’m finishing the documentation of the G2D library for Hollywood, with this nice addon everyHollywood programmer will get a very handy and simple way to skin their applications, the skin system support also multiple skin layers to create rich and beatyful patterns.
Here is a brief list of the included classes and methods:
- G2D.Area:Box(color, offset)
- G2D.Area:FillColor(color)
- G2D.Area:FillPattern(BrushID)
- G2D.Area:Move(x, y, absolute)
- G2D.Area:New(x, y, w, h)
- G2D.Area:Scale(WFactor, HFactor)
- G2D.Area:SkinBevel(colors, aspect)
- G2D.Area:SkinColor(color, alpha)
- G2D.Area:SkinFitMax(brush, offset, alpha, align)
- G2D.Area:SkinFitMin(brush, offset, alpha, align, border)
- G2D.Area:SkinGradient(col1, col2, alpha, angle)
- G2D.Area:SkinHPattern(brush, offset, alpha)
- G2D.Area:SkinHPattern3S(brush, sectors, alpha, vadapt)
- G2D.Area:SkinMulti(levels, offset)
- G2D.Area:SkinPattern(brush, offset, alpha, size)
- G2D.Area:SkinPattern9S(brush, sectors, alpha, vadapt)
- G2D.Area:SkinQuick(SkinBrush, Mode)
- G2D.Area:SkinShades(colList, angle)
- G2D.Area:SkinStretch(brush, offset, alpha, stretch_fix)
- G2D.Area:SkinVPattern(brush, offset, alpha)
- G2D.Area:SkinVPattern3S(brush, sectors, alpha, vadapt)
- G2D.Area:Snapshot(BGPic)
- G2D.BGPic.CreateSkinned(width, height, skin_struct)
- G2D.Point:Distance(point2D)
- G2D.Point:DotProduct(point2D)
- G2D.Point:MidPoint(point2D, NewObject)
- G2D.Point:New(x, y)
- G2D.Point:Normal2D(Point2D, s)
- G2D.Point:Normalize()
- G2D.Point:Rotate(point, angle)
- G2D.Point:Scale(point, scaleW, scaleH)
- G2D.Poly:Collide(Poly2)
- G2D.Poly:Draw()
- G2D.Poly:New(params)
- G2D.Poly:Project(Axis)
- G2D.Poly:SetAnchor(anchorX, anchorY)
- G2D.Poly:SetAngle(angle)
- G2D.Poly:SetScale(scaleWidth, scaleHeight)
- G2D.Poly:Translate(x, y)
Here is the link to the docs wiki (as I said it’s not yet finished):
http://a-mc.biz/docsite/doku.php?id=hollywoodlibs:g2d:main
Subscribe to support me in this huge work, all I need is coffee!
😀