AppleScript名:NSColorからCIColorを作成 |
— Created 2017-04-19 by Takaaki Naganoya — 2017 Piyomaru Software use AppleScript version "2.4" use scripting additions use framework "Foundation" use framework "QuartzCore" use framework "AppKit" set redValue to 0 set greenValue to 0 set blueValue to 1 set alphaVlaue to 1.0 set aNSColor to current application’s NSColor’s colorWithCalibratedRed:redValue green:greenValue blue:blueValue alpha:alphaVlaue set aCIColor to current application’s CIColor’s alloc()’s initWithColor:aNSColor –> (CIColor) (0 0 1 1) |
More from my site
(Visited 37 times, 1 visits today)