Might also just be a bug with the feature since its not released yet.
yeah he’s right, but you can use this function i made that converts a color (Color3 or BrickColor) and alpha to Tuple
local function ColorToRGBA(color: Color3|BrickColor, alpha: number?)
local Color3 = if typeof(color) == "Color3" then color else color.Color
alpha = if alpha ~= nil then alpha else 1
return Color3.R, Color3.G, Color3.B, alpha
end
this helps you count the number of items in the array since the function returns 4 numbers already. this also helps you type the RGBA values faster like this
local pixels = {
ColorToRGBA(Color3.new(0, 0, 0), 1),
ColorToRGBA(Color3.fromRGB(255, 255, 255), 0.5),
ColorToRGBA(BrickColor.new("New Yeller")),
ColorToRGBA(Color3.fromRGB(125, 200, 10), 0)
} -- the same as {0, 0, 0, 1, 1, 1, 1, 0.5, 1, 1, 0, 1, 0.4901960784313725, 0.7843137254901960, 0.0392156862745098, 0}
EditableImage:WritePixels(Vector2.zero, Vector2.new(2, 2), pixels)
I swear to god that I checked, and it only said the function name and nothing else. But… I guess there is now.
This proves that @theseformasentence was right.

{Red, Green, Blue, Transparency}.
It’s actually red, green, blue, opacity. I’ve been trying to use this function, but it’s pretty slow. I wish that it was easier to modify each pixel, since there’s likely hundreds of thousands of them and it takes up to 200 ms to iterate them all.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.