Surface.opIndexAssign

  1. void opIndexAssign(RGBColor rgbColor, T i)
    class Surface
    void
    opIndexAssign
    (
    T
    )
    (
    RGBColor rgbColor
    ,
    T i
    )
  2. void opIndexAssign(RGBColor rgbColor, T i, U j)

Parameters

rgbColor RGBColor

new color of pixel

i T

first index of pixel

Return Value

Type: void

Pixel

Examples

Surface sur = new Surface[10, 10];
sur[45] = new RGBColor(0, 45, 65);

Meta