Giter Club home page Giter Club logo

pailead's Issues

Crash possible in VBox.median method if lengthOfLongest is negative

It's not been easy to reproduce reliably but I see a crash happening in the VBox.median method on this line
var slicesSums = [Int](repeating: 0, count: lengthOfLongest + 1)

I believe the only thing that can trip this up is if somehow lengthOfLongest is negative. The only way this is possible is if somehow the minPixel values are larger than the maxPixel values.

Any idea how to best guard against this?

Provide Carthage Support

I like this library because it very closely matches the results from the material Palette library. I'd love to get Carthage support for it, if you can?

Pailead cannot be built --no-use-binaries on Carthage

if you run:

carthage bootstrap --no-use-binaries --use-ssh Pailead

Fails with code:

*** Checking out Pailead at "1.4.1"
*** xcodebuild output can be found in /var/folders/gm/slscg5cx0r161m3k37xv2xfw0000gp/T/carthage-xcodebuild.XcRdLO.log
*** Skipped building Pailead due to the error:
Dependency "Pailead" has no shared framework schemes

If you believe this to be an error, please file an issue with the maintainers at https://github.com/pducks32/Pailead/issues/new

I think this is because Pailed cannot be build with Xcode dev tools. The repo doesn't have an Xcode project. Out of interest how are you building this repo?

Provide a utility dominantSwatch method

I've a use case where I need to get the most dominant swatch in a palette. It'd be handy if the library provided this instead.

It could be a lazy var on the Palette class.

public lazy var dominantSwatch: Pailead.Swatch?

can i get representative point at color?

Hello.

Thank you for making pailead.

I wonder if can get the representative point of the color in palette.

Because I have to mark on image.

Please tell me about this.

Thank you again.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.