class A def a @abc = Sprite.new @abc.bitmap = Bitmap.new("Graphics/weather/试验1.png") a = "(255.000000,255.000000,255.000000,0.000000)" b = @abc.bitmap.get_pixel(0,0) if a == b p 1 else p 2 end end end
芙蕾娅 发表于 2017-10-21 21:36
试试看 a = Color.new(255, 255, 255, 0)
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |