qglyphs

0th

Percentile

Glyph constructors

Some glyph constructors for simple glyphs like circle, square and triangle. For use with qdrawGlyph.

Usage
qglyphCircle(r=5)
qglyphSquare(x=5)
qglyphTriangle(x=5, direction=c("up", "down"))
qglyphText(text="X", size=12)
qglyphSegment(x=5, direction=0)
Arguments
r
Radius of the circle
x
Length of one side of the square or triangle or the segment
direction
Whether the triangle is pointing up or down, or the direction of the segment (unit: radian)
text
The text of the text glyph
size
The font size of the text glyph
Value

  • qglyphCircle: C++ QPainterPath instance for use with qdrawGlyph

Aliases
  • qglyphCircle
  • qglyphSquare
  • qglyphTriangle
  • qglyphText
  • qglyphSegment
Documentation reproduced from package qtpaint, version 1.1.0, License: GPL version 2 or later

Community examples

Looks like there are no examples yet.