ActionScript 3.0 颜色输出错误?

发布于 2024-09-02 13:02:59 字数 1021 浏览 4 评论 0原文

我在当前的 AS3 项目中使用颜色,并且遇到了 Flash Player(版本 10)中的错误。这也可能是 Apple 的 DigitalColor Meter(版本 3.7.2)的错误,我用它来对 Mac OS X Snow Leopard(版本 10.6.3)上显示的颜色进行采样。

//Primary, secondary, and tertiary colors of the RGB color wheel

var red:Number = 0xFF0000;
var orange:Number = 0xFF7D00;
var yellow:Number = 0xFFFF00;
var chartreuse:Number = 0x7DFF00;
var green:Number = 0x00FF00;
var spring:Number = 0x00FF7D;
var cyan:Number = 0x00FFFF;
var azure:Number = 0x007DFF; //reads 0x0077FF
var blue:Number = 0x0000FF;
var violet:Number = 0x7D00FF;
var magenta:Number = 0xFF00FF; //reads 0xFF00F8
var rose:Number = 0xFF007D; //reads 0xFF0077

除 3 种颜色外,所有这些颜色均正常显示:天蓝色、洋红色和玫瑰色。它们用适当的数字进行编码,但是当我使用色度计对显示的颜色进行采样时,这 3 个返回的结果不准确。

有人对这个问题有任何见解吗?是什么导致了错误,Flash 运行时还是颜色采样器?如果是Flash播放器,这个问题会不会更严重?

替代文本 http://www.freeimagehosting.net/uploads/1a446801a2.jpg

* *由于 .jpg 压缩,对该图像采样将返回不准确的结果。这只是为了说明*

I'm employing color in a current AS3 project, and have come across what appears to be an error in the Flash Player (version 10). it might also be an error with Apple's DigitalColor Meter (version 3.7.2), which is what i'm using to sample the displayed colors on Mac OS X Snow Leopard (version 10.6.3).

//Primary, secondary, and tertiary colors of the RGB color wheel

var red:Number = 0xFF0000;
var orange:Number = 0xFF7D00;
var yellow:Number = 0xFFFF00;
var chartreuse:Number = 0x7DFF00;
var green:Number = 0x00FF00;
var spring:Number = 0x00FF7D;
var cyan:Number = 0x00FFFF;
var azure:Number = 0x007DFF; //reads 0x0077FF
var blue:Number = 0x0000FF;
var violet:Number = 0x7D00FF;
var magenta:Number = 0xFF00FF; //reads 0xFF00F8
var rose:Number = 0xFF007D; //reads 0xFF0077

all of these colors display normally except for 3: Azure, Magenta and Rose. they are coded with the appropriate number, but when i use the color meter to sample the displayed colors, those 3 return inaccurate results.

anyone have any insight about this issue? what is causing the error, the Flash runtime or the color sampler? if it's the Flash player, could this problem be much deeper?

alt text http://www.freeimagehosting.net/uploads/1a446801a2.jpg

**sampling this image will return inaccurate results due to .jpg compression. it's simply for illustration*

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

鸵鸟症 2024-09-09 13:02:59

由于您使用的是 Mac,这可能是由于 Mac 在系统级别处理颜色配置文件的方式造成的。尝试更改“显示”首选项窗格中颜色面板下的配置文件,并查看输出是否发生变化。我不确定什么配置文件会给你准确的结果(也许是 sRGB?),但根据你使用它的目的,颜色可能会在你查看的任何屏幕上看起来略有不同。

Since you're using a Mac, it could be due to the way the Mac handles color profiles at the system level. Try changing the profile under the color panel in the Display preference pane and see if the output changes. I'm not sure what profile would give you accurate results (maybe sRGB?), but depending on what you're using this for, the colors are probably going to look slightly different on just about any screen you look at it on.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文