QSGGeometry.ColoredPoint2D

The ColoredPoint2D struct is a convenience struct for accessing 2D Points with a color. More

Inheritance diagram of PySide2.QtQuick.QSGGeometry.ColoredPoint2D

Synopsis

Functions

  • def set (nx, ny, nr, ng, nb, na)

Detailed Description

class PySide2.QtQuick.QSGGeometry.ColoredPoint2D

PySide2.QtQuick.QSGGeometry.ColoredPoint2D(ColoredPoint2D)

Parameters

ColoredPoint2DColoredPoint2D

PySide2.QtQuick.QSGGeometry.ColoredPoint2D.x
PySide2.QtQuick.QSGGeometry.ColoredPoint2D.y
PySide2.QtQuick.QSGGeometry.ColoredPoint2D.r
PySide2.QtQuick.QSGGeometry.ColoredPoint2D.g
PySide2.QtQuick.QSGGeometry.ColoredPoint2D.b
PySide2.QtQuick.QSGGeometry.ColoredPoint2D.a
PySide2.QtQuick.QSGGeometry.ColoredPoint2D.set(nx, ny, nr, ng, nb, na)
Parameters
  • nxfloat

  • nyfloat

  • nruchar

  • nguchar

  • nbuchar

  • nauchar

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