Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1062935
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T18:42:25+00:00 2026-05-16T18:42:25+00:00

If I have a bottom layer color and an alpha value (C&A) and want

  • 0

If I have a bottom layer color and an alpha value (C&A) and want to create a custom C&A on the screen, what is the function to determine what C&A has to be added as a layer on top of the bottom layer?

edit:

I want to duplicate photoshop’s “normal” mode so that I match a designer’s graphic design.

For example:

BASE LAYER rgb: 255-0-0 alpha: 51/256

+

NEW LAYER rgb: ???  alpha: ???

=

DESIRED LAYER rgb: 114-0-141 alpha: 92/256

P.S.: the answer is 0-0-255 alpha: 51/256… but I only know this because I wrote the problem and verified it in photoshop.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T18:42:26+00:00Added an answer on May 16, 2026 at 6:42 pm

    This would depend on the Blend Mode used between the two layers (bottom and top). The wiki page lists some formulae that may be of interest to you.

    The PDF Reference manual has a nice explanation too:

    αrCr = [(1 –
    αs) * αb *
    Cb] + [(1 – αb) *
    αs * Cs] +
    αb * αs *
    B(Cb, Cs)

    where

      C = color, α = alpha value 
    

    and the subscripts

    r = result, b = backdrop, s = source

    Also,

    B(Cb, Cs) = blend mode function

    In case of Normal Blend Mode: B(Cb, Cs) = Cs

    The blended alpha is given by:

    αr = Union(αb, αs) and

    Union(b, s) = b + s – (b * s )

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I made in GWT custom modal message box. It has also bottom layer. This
I have a problem with IE. I have a layer that has this style
(resolved: see bottom) I have the following code snippet: Protected Sub SqlDataSource1_Inserted(ByVal sender As
I have a status message box (div box) positioned at the bottom of a
Can you have cellpadding or spacing just on the top/ bottom as opposed to
I have a base form. I place Ok and Cancel buttons on the bottom
I'm looking to have text display vertically, first letter at the bottom, last letter
In a stylesheet i have: * HTML BODY { padding-right: 0px; padding-left: 0px; padding-bottom:
So I have a bit of script at the bottom of my page //RETAINER
I am developing an api layer for my application. I have designed a structure

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.