Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The subset of Drawbot that is currently supported #5

Open
justvanrossum opened this issue Sep 22, 2020 · 0 comments
Open

The subset of Drawbot that is currently supported #5

justvanrossum opened this issue Sep 22, 2020 · 0 comments

Comments

@justvanrossum
Copy link
Owner

justvanrossum commented Sep 22, 2020

Currently supported Drawbot functions:

  • size(width, height)
  • newPage(width, height)
  • frameDuration(duration)
  • width()
  • height()
  • rect(x, y, w, h)
  • oval(x, y, w, h)
  • line(pt1, pt2)
  • polygon(firstPoint, *points, close=True)
  • drawPath(path)
  • clipPath(path)
  • fill(*args)
  • stroke(*args)
  • strokeWidth(value)
  • lineCap(lineCap)
  • lineJoin(lineJoin)
  • lineDash(firstValue, *values)
  • blendMode(blendMode)
  • miterLimit(miterLimit)
  • linearGradient(...)
  • radialGradient(...) limited to a single center point and a zero start radius
  • font(fontNameOrPath, fontSize=None)
  • fontSize(size)
  • openTypeFeatures(*, resetFeatures=False, **features)
  • fontVariations(*, resetVariations=False, **variations)
  • textSize(txt)
  • language(language)
  • text(txt, position, align=None) single line, single style only for now
  • image(imagePath, position, alpha=1.0) limited to pixel formats, PDF is not supported
  • translate(x, y)
  • rotate(angle, center=(0, 0))
  • scale(sx, sy=None, center=(0, 0))
  • skew(sx, sy=0, center=(0, 0))
  • transform(matrix, center=(0, 0))
  • savedState()
  • saveImage(fileName) currently limited to PNG, JPG, MP4 and PDF

BezierPath currently supports:

  • path.moveTo(pt)
  • path.lineTo(pt)
  • path.curveTo(pt1, pt2, pt3, *pts)
  • path.qCurveTo(pt1, pt2, *pts)
  • path.arc(center, radius, startAngle, endAngle, clockwise)
  • path.arcTo(point1, point2, radius)
  • path.closePath()
  • path.endPath() segment pen method / point pen method
  • path.beginPath() point pen method
  • path.addPoint(...) point pen method
  • path.rect(x, y, w, h)
  • path.oval(x, y, w, h)
  • path.polygon(firstPoint, *points, close=True)
  • path.text(txt, ...)
  • path.pointInside(point)
  • path.bounds()
  • path.controlPointBounds()
  • path.appendPath(other)
  • path.copy()
  • path.reverse()
  • path.translate(x, y)
  • path.scale(x, y=None, center=(0, 0))
  • path.rotate(angle, center=(0, 0))
  • path.skew(x, y=0, center=(0, 0))
  • path.transform(transform, center=(0, 0))
  • path.drawToPen(pen)
  • path.drawToPointPen(pen)
  • path.removeOverlap()
  • path.union(other) and path.__or__(other)
  • path.intersection(other) and path.__and__(other)
  • path.difference(other) and path.__mod__(other)
  • path.xor(other) and path.__xor__(other)

For an overview of changes and additions per release, see https://github.com/justvanrossum/drawbot-skia/blob/master/CHANGELOG.md

@justvanrossum justvanrossum changed the title Overview of what part of Drawbot is currently implemented Overview of what subset of Drawbot is currently implemented Sep 22, 2020
@justvanrossum justvanrossum changed the title Overview of what subset of Drawbot is currently implemented Overview of which subset of Drawbot is currently implemented Sep 22, 2020
@justvanrossum justvanrossum changed the title Overview of which subset of Drawbot is currently implemented Overview of which subset of Drawbot currently supports Sep 23, 2020
@justvanrossum justvanrossum changed the title Overview of which subset of Drawbot currently supports The subset of Drawbot that is currently supported Sep 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant