Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Airplay Class?

edited September 2015 in Suggestions Posts: 39

I have noticed some apps display different content on the Apple TV through airplay to on the iPad screen. I was wandering if you could add a class to help to this. For example if you did this:

-- Example
-- (Don't try this, it is just a suggestion of what COULD be made possible.)

-- This function gets called once every frame
function draw()
    -- This sets the background colour
    background(40, 40, 50)
end

-- This function gets called once every frame on the Apple TV
function airplay:draw()
    -- This sets the background colour
    background(255, 255, 255, 255)
end


And it would display black on the iPad/iOS device but white through airplay.
This would just be a fun thing to play with.
Happy Programming;
J.A.J.

Comments

  • Posts: 815

    Could be great

  • Yes,yes,yes! I would love this feature!

  • Posts: 82
    This would be an amazing feature for board games and such!
  • Posts: 815

    But instead AirPlay:draw maybe airplay in an beatiful purple and make it not able to say sty = airplay will return error...
    Here is what to do:

    airplay {
    -- here the function (it has to be in draw)
    }
    
Sign In or Register to comment.