mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-28 06:21:25 +00:00
[lua] Minor change app.pixelColor -> pc in test
This commit is contained in:
parent
4a91d150af
commit
afb8a3d94a
@ -398,13 +398,13 @@ end
|
||||
do
|
||||
local s = Sprite(3, 3, ColorMode.RGB)
|
||||
local p = s.palettes[1]
|
||||
local c0 = app.pixelColor.rgba(0 , 0, 0, 255)
|
||||
local c1 = app.pixelColor.rgba(255, 0, 0, 255)
|
||||
local c2 = app.pixelColor.rgba(0 , 255, 0, 255)
|
||||
local c3 = app.pixelColor.rgba(0 , 0, 255, 255)
|
||||
local c4 = app.pixelColor.rgba(255, 255, 0, 255)
|
||||
local c5 = app.pixelColor.rgba(255, 255, 255, 255)
|
||||
local c6 = app.pixelColor.rgba(0 , 0, 0, 0)
|
||||
local c0 = pc.rgba(0 , 0, 0, 255)
|
||||
local c1 = pc.rgba(255, 0, 0, 255)
|
||||
local c2 = pc.rgba(0 , 255, 0, 255)
|
||||
local c3 = pc.rgba(0 , 0, 255, 255)
|
||||
local c4 = pc.rgba(255, 255, 0, 255)
|
||||
local c5 = pc.rgba(255, 255, 255, 255)
|
||||
local c6 = pc.rgba(0 , 0, 0, 0)
|
||||
p:setColor(0, c0)
|
||||
p:setColor(1, c1)
|
||||
p:setColor(2, c2)
|
||||
@ -460,12 +460,12 @@ end
|
||||
do
|
||||
local s = Sprite(3, 3, ColorMode.GRAYSCALE)
|
||||
local p = s.palettes[1]
|
||||
local c0 = app.pixelColor.graya( 0, 255)
|
||||
local c1 = app.pixelColor.graya( 63, 255)
|
||||
local c2 = app.pixelColor.graya(127, 255)
|
||||
local c3 = app.pixelColor.graya(191, 255)
|
||||
local c4 = app.pixelColor.graya(255, 255)
|
||||
local c5 = app.pixelColor.graya( 0, 0)
|
||||
local c0 = pc.graya( 0, 255)
|
||||
local c1 = pc.graya( 63, 255)
|
||||
local c2 = pc.graya(127, 255)
|
||||
local c3 = pc.graya(191, 255)
|
||||
local c4 = pc.graya(255, 255)
|
||||
local c5 = pc.graya( 0, 0)
|
||||
p:setColor(0, c0)
|
||||
p:setColor(1, c1)
|
||||
p:setColor(2, c2)
|
||||
|
Loading…
Reference in New Issue
Block a user