class ColoredPoint2D#

Synopsis#

Methods#

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description#

PySide6.QtQuick.QSGGeometry.ColoredPoint2D.x#
PySide6.QtQuick.QSGGeometry.ColoredPoint2D.y#
PySide6.QtQuick.QSGGeometry.ColoredPoint2D.r#
PySide6.QtQuick.QSGGeometry.ColoredPoint2D.g#
PySide6.QtQuick.QSGGeometry.ColoredPoint2D.b#
PySide6.QtQuick.QSGGeometry.ColoredPoint2D.a#
set(nx, ny, nr, ng, nb, na)#
Parameters:
  • nx – float

  • ny – float

  • nr – int

  • ng – int

  • nb – int

  • na – int

Sets the position of the vertex to x and y and the color to red, green, blue, and alpha.