Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

What is the relationship between APCA and phi? #140

Answered by Myndex
cgiosy asked this question in Q&A
Discussion options

Hello.
While playing around with APCA, I discovered that (bgY^0.618 - txtY^0.618) * 1.14 ± 0.027 is somewhat similar to APCA's Lc. Of course, the error is not negligible, and especially as Y approaches 0 or 1, the error with Lc increases to about 3-5. Since it lacks APCA's various core and valuable processing steps, this is an expected result.

Anyway, considering that, unlike APCA, this is effectively a single-variable function, it seems to be a relatively optimal approximation. However, it happens that 0.618 is close to 1/phi, and considering the existence of DeltaPhiStar, I started to wonder if there's a possibility that APCA might also be based on phi.

(削除) So, what I'm curious about is whether this is merely a coincidence, or if the appearance of phi is actually somewhat expected. Alternatively, are there any explanations or links I could refer to about how DeltaPhiStar derived this magic constant to predict approximate color contrast? (削除ここまで)

Hmm, I'm running a few more tests, and it seems more likely that it's just a coincidence due to its similarity to existing constants. The optimal value changes quite significantly with minor modifications like adding multiplication, changing the criterion from the sum of squares to something else, or applying weights.

You must be logged in to vote

Hi @cgiosy

APCA is not based on phi, but you will notice that values in the midrange may seem to have a relationship. This is because phi in association with certain other parameters can make a close approximation to visual lightness (perception) curves.

Replies: 1 comment

Comment options

Hi @cgiosy

APCA is not based on phi, but you will notice that values in the midrange may seem to have a relationship. This is because phi in association with certain other parameters can make a close approximation to visual lightness (perception) curves.

You must be logged in to vote
0 replies
Answer selected by cgiosy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /