// 透明化したい色のRGB値をユーザーに入力してもらう int fromRed = input("透明化する色の赤成分 ( 0〜255 ) は?", "0"); int fromGreen = input("透明化する色の緑成分 ( 0〜255 ) は?", "255"); int fromBlue = input("透明化する色の青成分 ( 0〜255 ) は?", "0"); int fromAlpha = 255; // 透明化したい元の色の不透明度(0で完全な透明、255で完全な不透明)