pyfeyn2.render.pyx.blobs.Circle

class pyfeyn2.render.pyx.blobs.Circle(x=None, y=None, center=None, radius=None, fill=[<pyx.color.cmyk object>], stroke=[<pyx.color.cmyk object>], points=[], blob=None, labels=[], **kwargs)[source]

Bases: Blob

A circular blob

__init__(x=None, y=None, center=None, radius=None, fill=[<pyx.color.cmyk object>], stroke=[<pyx.color.cmyk object>], points=[], blob=None, labels=[], **kwargs)[source]

Constructor.

Methods

__init__([x, y, center, radius, fill, ...])

Constructor.

addLabel(text[, displace, angle, size, ...])

Add a label.

addTrafo(trafo)

Add a transformation.

arg(otherpoint)

Return the angle between the x-axis and the straight line defined by this point and the argument (cf.

clearFillStyles()

Remove all the current fill styles.

clearLabels()

Remove all current labels.

clearStrokeStyles()

Remove all the current stroke styles.

clearTrafos()

Remove transformations.

distance(otherpoint)

Calculate the distance between this point and the argument.

draw(canvas)

Draw this circle blob.

getBlob()

Get the attached blob.

getDepth()

Return the depth at which this instance lives.

getPath()

Get the path of this circle blob.

getVisiblePath()

Return the visible path of this instance.

getX()

Return the x-coordinate of this point.

getXY()

Return the x and y coordinates of this point as a 2-tuple.

getY()

Return the y-coordinate of this point.

intercept(otherpoint)

Return the y-intercept of the straight line defined by this point and the argument.

isVisible()

Check if this instance is visible.

midpoint(otherpoint)

Return the point midway between this point and the argument.

removeLabels()

Remove all labels from this point.

setBlob(blob)

Set the attached blob.

setDepth(depth)

Set the depth at which this instance lives.

setFillStyle(fillstyle)

Set the fill style.

setPoints(points)

Set the points to which this blob is attached.

setStrokeStyle(strokestyle)

Set the stroke style.

setX(x)

Set the x-coordinate of this point.

setXY(xpos, ypos)

Set the x and y coordinates of this point.

setY(y)

Set the y-coordinate of this point.

tangent(otherpoint)

Return the tangent of the straight line defined by this point and the argument.

x()

Alias for getX().

xy()

Alias for getXY().

y()

Alias for getY().

Attributes

blobshape

addLabel(text, displace=-0.15, angle=0, size=<pyx.text.size object>, halign=<pyx.text.halign object>, valign=None)

Add a label.

addTrafo(trafo)

Add a transformation.

arg(otherpoint)

Return the angle between the x-axis and the straight line defined by this point and the argument (cf. complex numbers).

clearFillStyles()

Remove all the current fill styles.

clearLabels()

Remove all current labels.

clearStrokeStyles()

Remove all the current stroke styles.

clearTrafos()

Remove transformations.

distance(otherpoint)

Calculate the distance between this point and the argument.

draw(canvas)[source]

Draw this circle blob.

getBlob()

Get the attached blob.

getDepth()

Return the depth at which this instance lives.

getPath()[source]

Get the path of this circle blob.

getVisiblePath()

Return the visible path of this instance.

getX()

Return the x-coordinate of this point.

getXY()

Return the x and y coordinates of this point as a 2-tuple.

getY()

Return the y-coordinate of this point.

intercept(otherpoint)

Return the y-intercept of the straight line defined by this point and the argument.

isVisible()

Check if this instance is visible.

midpoint(otherpoint)

Return the point midway between this point and the argument.

removeLabels()

Remove all labels from this point.

setBlob(blob)

Set the attached blob.

setDepth(depth)

Set the depth at which this instance lives.

setFillStyle(fillstyle)

Set the fill style.

setPoints(points)

Set the points to which this blob is attached.

setStrokeStyle(strokestyle)

Set the stroke style.

setX(x)

Set the x-coordinate of this point.

setXY(xpos, ypos)

Set the x and y coordinates of this point.

setY(y)

Set the y-coordinate of this point.

tangent(otherpoint)

Return the tangent of the straight line defined by this point and the argument.

x()

Alias for getX().

xy()

Alias for getXY().

y()

Alias for getY().