Magnum/Primitives/Gradient.h file

Function Magnum::Primitives::gradient2D(), Magnum::Primitives::gradient2DHorizontal(), Magnum::Primitives::gradient2DVertical(), Magnum::Primitives::gradient3D(), Magnum::Primitives::gradient3DHorizontal(), Magnum::Primitives::gradient3DVertical()

Namespaces

namespace Magnum
Root namespace.
namespace Magnum::Primitives
Primitive library.

Functions

auto gradient2D(const Vector2& a, const Color4& colorA, const Vector2& b, const Color4& colorB) -> Trade::MeshData
2D square with a gradient
auto gradient2DHorizontal(const Color4& colorLeft, const Color4& colorRight) -> Trade::MeshData
2D square with a horizontal gradient
auto gradient2DVertical(const Color4& colorBottom, const Color4& colorTop) -> Trade::MeshData
2D square with a vertical gradient
auto gradient3D(const Vector3& a, const Color4& colorA, const Vector3& b, const Color4& colorB) -> Trade::MeshData
3D plane with a gradient
auto gradient3DHorizontal(const Color4& colorLeft, const Color4& colorRight) -> Trade::MeshData
3D plane with a horizontal gradient
auto gradient3DVertical(const Color4& colorBottom, const Color4& colorTop) -> Trade::MeshData
3D plane with a vertical gradient