{"id":13786861,"url":"https://github.com/florent37/PicassoPalette","last_synced_at":"2025-05-12T00:30:32.078Z","repository":{"id":31738400,"uuid":"35304422","full_name":"florent37/PicassoPalette","owner":"florent37","description":"Android Lollipop Palette is now easy to use with Picasso !","archived":true,"fork":false,"pushed_at":"2020-07-02T11:52:07.000Z","size":1210,"stargazers_count":365,"open_issues_count":6,"forks_count":35,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-11-18T00:37:14.425Z","etag":null,"topics":["color","glide","image","loading","material","palette","picasso","v7"],"latest_commit_sha":null,"homepage":"http://florent37.github.io/PicassoPalette","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/florent37.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-08T22:18:25.000Z","updated_at":"2023-08-03T07:42:32.000Z","dependencies_parsed_at":"2022-08-29T16:00:33.017Z","dependency_job_id":null,"html_url":"https://github.com/florent37/PicassoPalette","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florent37%2FPicassoPalette","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florent37%2FPicassoPalette/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florent37%2FPicassoPalette/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florent37%2FPicassoPalette/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/florent37","download_url":"https://codeload.github.com/florent37/PicassoPalette/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253655746,"owners_count":21943067,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["color","glide","image","loading","material","palette","picasso","v7"],"created_at":"2024-08-03T20:00:20.046Z","updated_at":"2025-05-12T00:30:31.747Z","avatar_url":"https://github.com/florent37.png","language":"Java","funding_links":["https://ko-fi.com/A160LCC'"],"categories":["Library"],"sub_categories":[],"readme":"PicassoPalette\n=======\n\n\n\u003ca href=\"https://goo.gl/WXW8Dc\"\u003e\n  \u003cimg alt=\"Android app on Google Play\" src=\"https://developer.android.com/images/brand/en_app_rgb_wo_45.png\" /\u003e\n\u003c/a\u003e\n\n\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-PicassoPalette%20-brightgreen.svg?style=flat)](http://android-arsenal.com/details/1/1825)\n\n![Alt sample](https://raw.githubusercontent.com/florent37/PicassoPalette/master/screenshot/nyancat_small_2.png)\n\n# Download\n\n\u003ca href='https://ko-fi.com/A160LCC' target='_blank'\u003e\u003cimg height='36' style='border:0px;height:36px;' src='https://az743702.vo.msecnd.net/cdn/kofi1.png?v=0' border='0' alt='Buy Me a Coffee at ko-fi.com' /\u003e\u003c/a\u003e\n\nIn your module [![Download](https://api.bintray.com/packages/florent37/maven/PicassoPalette/images/download.svg)](https://bintray.com/florent37/maven/PicassoPalette/_latestVersion)\n```groovy\ncompile 'com.github.florent37:picassopalette:2.0.0'\ncompile 'com.squareup.picasso:picasso:2.5.2'\n```\n\n# Sample\n\n```java\nPicasso.with(this).load(url.toString()).into(imageView,\n         PicassoPalette.with(url.toString(), imageView)\n               .use(PicassoPalette.Profile.MUTED_DARK)\n                   .intoBackground(textView)\n                   .intoTextColor(textView)\n\n               .use(PicassoPalette.Profile.VIBRANT)\n                    .intoBackground(titleView, PicassoPalette.Swatch.RGB)\n                    .intoTextColor(titleView, PicassoPalette.Swatch.BODY_TEXT_COLOR)\n         );\n```\n\n## Initialisation\n\nFirst, init PicassoPalette with an **Url** and an **ImageView**\n\n```java\nPicassoPalette.with(url.toString(), imageView)\n```\n\n## Palettes\n\nYou can successively use following palettes :\n\n- Palette.VIBRANT\n- Palette.VIBRANT_DARK\n- Palette.VIBRANT_LIGHT\n- Palette.MUTED\n- Palette.MUTED_DARK\n- Palette.MUTED_LIGHT\n\n```java\n.use(PicassoPalette.Profile.MUTED_DARK)\n```\n\n**Each time you call \"use\" the next modification will follow this Profile**\n\n```java\n.use(PicassoPalette.Profile.MUTED_DARK)\n    //next operations will use Profile.MUTED_DARK\n.use(PicassoPalette.Profile.VIBRANT)\n    //next operations will use Profile.VIBRANT\n```\n\n## Swatches\n\nWith the following Swatchs\n\n- RGB\n- TITLE_TEXT_COLOR\n- BODY_TEXT_COLOR\n\n## Targets\n\nInto Backgrounds\n\n```java\n.intoBackground(view)\n.intoBackground(view,Swatch.RGB)\n```\n\nAnd TextView Color\n\n```java\n.intoTextColor(textView)\n.intoTextColor(textView,Swatch.TITLE_TEXT_COLOR)\n```\n\n# CallBack\n\nOr simply return into CallBack\n\n```java\n.intoCallBack(\n    new PicassoPalette.CallBack() {\n          @Override\n          public void onPaletteLoaded(Palette palette) {\n              //specific task\n          }\n    })\n```\n\n\n# TODO\n\n# Community\n\nLooking for contributors, feel free to fork !\n\n# Dependencies\n\n- Picasso from Square : [http://square.github.io/picasso/][picasso]\n\n# Credits\n\nAuthor: Florent Champigny \n\n\n\u003ca href=\"https://goo.gl/WXW8Dc\"\u003e\n  \u003cimg alt=\"Android app on Google Play\" src=\"https://developer.android.com/images/brand/en_app_rgb_wo_45.png\" /\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://plus.google.com/+florentchampigny\"\u003e\n  \u003cimg alt=\"Follow me on Google+\"\n       src=\"https://raw.githubusercontent.com/florent37/DaVinci/master/mobile/src/main/res/drawable-hdpi/gplus.png\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://twitter.com/florent_champ\"\u003e\n  \u003cimg alt=\"Follow me on Twitter\"\n       src=\"https://raw.githubusercontent.com/florent37/DaVinci/master/mobile/src/main/res/drawable-hdpi/twitter.png\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://www.linkedin.com/in/florentchampigny\"\u003e\n  \u003cimg alt=\"Follow me on LinkedIn\"\n       src=\"https://raw.githubusercontent.com/florent37/DaVinci/master/mobile/src/main/res/drawable-hdpi/linkedin.png\" /\u003e\n\u003c/a\u003e\n\n# License\n\n    Copyright 2015 florent37, Inc.\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n\n\n[snap]: https://oss.sonatype.org/content/repositories/snapshots/\n[picasso]: http://square.github.io/picasso/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflorent37%2FPicassoPalette","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflorent37%2FPicassoPalette","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflorent37%2FPicassoPalette/lists"}