coneneko.rgba
- class Color;
- vector(r, g, b, a)
- static Vector WHITE;
- static Vector LIGHT_GRAY;
- static Vector GRAY;
- static Vector BLACK;
- static Vector RED;
- static Vector GREEN;
- static Vector BLUE;
- static Vector YELLOW;
- static Vector WATER;
- static ubyte toUbyte(float a);
- [0, 1]
- static uint toUint(Vector c);
- static Vector toVector(uint c);
- class Rgba: coneneko.serializer.Serializer;
- 32bit、いろいろな変換に使う
- uint height;
- uint[] pixels;
- this();
- this(uint width, uint height);
- this(uint width, uint height, uint[] pixels);
- this(string imageFileName);
- this(Font font, string text, Vector color);
- sizeが小さかったり、TTF fileによっては壊れたイメージになることがある
- void writePng(char[] pngFileName);
- static uint toTextureLength(uint a);
- textureとして使える2のn乗に切り上げ
- bool canUseAsTexture();
- 長さが
- uint opIndex(uint x, uint y);
- color = this[x, y]
- void opIndexAssign(uint value, uint x, uint y);
- this[x, y] = color
- Rgba correctTextureSize(Rgba src, bool scaling = true);
- textureとして使える2のn乗に、scaling=falseならresize
- Rgba resize(Rgba src, uint width, uint height);
- 余白は0
- Rgba scale(Rgba src, uint width, uint height);
- Rgba mergeMultiLineText(Rgba[] array);
- Rgba toNormalMap(Rgba src);
- Rgba flipVertical(Rgba src);
- Rgba lerp(Rgba left, Rgba right, float interpolater);
Page generated by Ddoc.