Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

MGLStyleFunction needs a colorSpaceModel property #6721

Closed

Description

@1ec5

The iOS and macOS SDKs need to support the new color interpolation option being added in #6442 #8720 via a new colorSpaceModel property on MGLStyleFunction. No need to extend the initializers, since we can assume a default color space model of RGB.

Ideally, the property would be of type CGColorSpaceModel or NSColorSpaceModel. However, we’d have to provide our own HCL color space model and document the fact that some of the common color space models provided by Core Graphics or AppKit, like grayscale, are unavailable. So it might be easier, if less cool, to define our own enumeration.

/cc @friedbunny @tmcw @zugaldia

Activity

  1. added
    GL JS parity
    iOS
    macOS
    on Oct 17, 2016
  2. 1ec5 commented on Oct 17, 2016

    @1ec5
    ContributorAuthor

    I think we probably will have to provide our own enumeration for this type, because CGColorSpaceModel is new as of iOS 9 and macOS 10.11, and NSColorSpaceModel is new as of macOS 10.10. But we can be consistent with naming at least.

  3. jfirebaugh commented on Jul 20, 2018

    @jfirebaugh
    Contributor

    We removed functions. If we bring back color spaces, it'll be as an expression.

  4. 1ec5 commented on Aug 21, 2018

    @1ec5
    ContributorAuthor

    #8720 has been repurposed to track the addition of an expression operator. There would still need to be some platform-specific work, so this issue could be reopened to track that when the time comes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GL JS parityiOSmacOSruntime styling

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions