Jump to content

Recommended Posts

Posted

The first image below is from a UI Design drawing in Affinity Designer 1.10.6. The second image is from an iOS app I am building. I set the colors in the background of the app by looking at the RGB values in the gradient fill in affinity and copying them into SwiftUI using the commands shown below. I am using p3 colorspace in affinity and as shown below, I am defining colors in the p3 space in the app. But the colors I get from the app don't match the colors I see in affinity. The colors in the app look like sRGB.

Do I need to convert the numbers somehow? For reference, I am sending screenshots of the RGB color picker in affinity down below. 

static let Color_Home_BG_Top = Color(.displayP3, red: 0.0/255.0, green: 123.0/255.0, blue: 184.0/255.0)

static let Color_Home_BG_Bottom = Color(.displayP3, red: 139.0/255.0, green: 197.0/255.0, blue: 226.0/255.0)

492074289_Image3-22-23at1_32PM.JPG.a2d31d1c185ecbb8a666e3d564518996.JPGIMG_3407.thumb.PNG.af286f430d7d251649911efc17202f8d.PNG

1664819004_Screenshot2023-03-22at1_45_45PM.png.f38539daa856671e9526aaf2f1d4bd08.png755098736_Screenshot2023-03-22at1_45_33PM.png.77a3171d33c5d5a1f1141f7a3920dde1.png

 

Posted

Hi sirhans,

This can be a little tricky to diagnose with so many variables involved including hardware used to view the project and their configuration.

Is your monitor capable and set to display the P3 colour space?

Lee

 

Posted
1 hour ago, LeeThorpe said:

Hi sirhans,

This can be a little tricky to diagnose with so many variables involved including hardware used to view the project and their configuration.

Is your monitor capable and set to display the P3 colour space?

Lee

 

Hi Lee, thanks for responding. I did some debugging on my own and found that there was an error in the LinearGradient function of SwiftUI. So the problem has nothing to do with Affinity Designer.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.