类型 事件 修订 版本 2024.3703 关键词 colorSample
提供有关生成此事件的 colorSample 的信息。
-- Called when a colorSample event has been received local function onColorSampleEvent( event ) print( "Sampling result, at position: " .. event.x .. " " .. event.y .. " The color is: " .. event.r .. " " .. event.g .. " " .. event.b .. " " .. event.a ) end display.colorSample( 17, 9, onColorSampleEvent )