Questions tagged [palette]

A helper class of Android to extract prominent colors from an image.

A helper class to extract prominent colors from an image.


Palette is an Android feature to support the developer to create a MaterialDesign feeling by generating a colorset of appropriate looking colors based on a bitmap source (app-icon e.g.).

Reference

359 questions
4
votes
4 answers

How to show / hide Palette window in Netbeans 7.4

I use windows 8 and Netbeans 7.4 . Even I create a web application I cannot find palette from the project. How can I make it visible ?
Codesl
  • 547
  • 2
  • 5
  • 10
4
votes
0 answers

Using Palatte API in ListView Adapter

Ok, first off all, I have not yet converted to using RecylerView; if for whatever reason doing that answers this question, by all means let me know. In the meantime, I am trying to add a splash of different colors into a ListView using Palette.…
TheLettuceMaster
  • 15,594
  • 48
  • 153
  • 259
4
votes
2 answers

how to calculate the gradient with multiple dimensions of colors in R

this is related to this question but perhaps a simpler example. i'm curious if there's a reasonable way to calculate a multi-dimensional color gradient given three or four arbitrary colors the way that the r rgb() function does with red, green,…
Anthony Damico
  • 5,779
  • 7
  • 46
  • 77
4
votes
2 answers

The Jlabel component disappeared from my Netbeans's palette

I've been working on netbeans, coding some Java, and while designin a Jframe, I can't find the JLabel component on my Palette: image : http://img15.hostingpics.net/pics/524059label.png Where can I get it back please?
user3089045
  • 199
  • 1
  • 4
  • 12
4
votes
2 answers

Build a color palette from image URL

I am trying to create an API which takes an image URL as input and returns back a color palette in JSON format as output. It should work something like this: http://lokeshdhakar.com/projects/color-thief/ But should be in Python. I have looked into…
Jyotiska
  • 255
  • 3
  • 15
4
votes
6 answers

widgets missing from graphical layout palette (android on eclipse)

I'm not sure what happened exactly, but when I started up eclipse, there are no widgets in the graphical layout palette, as in the folders show nothing in them. It has worked before. Is there any way to fix this?
bvuong
  • 71
  • 1
  • 4
3
votes
2 answers

Assigning different palette indices to a paletted image

I'm writing a game with Python and Pygame. For this, the graphics will be in the style of old video game consoles like the NES. Therefore, the graphics consist of a single tileset file with 2-bit (4-colour) images, and I want to be able to assign an…
egj
  • 31
  • 1
3
votes
1 answer

(Python) Set a specific palette in an image using PIL or PyPNG

I have a bunch of images that I am working on separately, that fit back together after being worked on. I'd like to compress them to a 8 bit image in order to save size. I'm currently doing this with PIL by calling: image = image.convert('P',…
NightFalcon
  • 102
  • 1
  • 9
3
votes
2 answers

Plotting multiple pm3d surfaces each having its own palettes in gnuplot

What I basically want to do is basically the same as the solution to this question Gnuplot 5.2 splot: Multiple pm3d palette in one plot call , but which works with pm3d. If you read the comment to that answer, the answerer said that the solution…
nougako
  • 234
  • 1
  • 8
3
votes
1 answer

Gnuplot 5.2 splot: Multiple pm3d palette in one plot call

I wonder, can I used two different pm3d palettes in splot? I use Gnuplot 5.2 and want to show two 3D surfaces, like ocean and land with different color palettes. Can I define this in some way like: splot "file" u 1:2:3 with pm3d palette 1, "file"…
3
votes
1 answer

gnuplot palette changes color with zoom

I'm plotting multiple transects together. With two transects plotted, the color scheme is what I'm looking for. When I plot a third, it changes. If I zoom in with three transects plotted, I again get the desired color differentiations. Why does…
Josh
  • 61
  • 4
3
votes
0 answers

How can I do color quantization of images in Android?

I want to reduce the color count of an image. Android provides a palette library to build palettes: https://developer.android.com/reference/android/support/v7/graphics/Palette.Builder.html But the Palette Builder only build the palette itself, but…
NeoWang
  • 17,361
  • 24
  • 78
  • 126
3
votes
1 answer

Adding Richfaces to Eclipse Palette?

I am using Eclipse 3.6, and want to add Richfaces to Palette.Could anyone give source or explain how to do please?
qasanov
  • 427
  • 1
  • 7
  • 20
3
votes
1 answer

Palette library changing colors while scrolling in GridView

I've been having some problems implementing the new Palette library (on 4.4.4 with 'com.android.support:palette-v7:21.0.+'). I am trying to color a part of each item in a GridView which works fine but when I scroll an item off the screen then back…
John Howard
  • 61,037
  • 23
  • 50
  • 66
3
votes
1 answer

gnuplot palette, default and defined

Some what related to previous question I would like to take the default (pm3d default) colour palette of gnuplot and place a white value at X and have anything >=X as white but the rest(
dogAwakeCat
  • 311
  • 2
  • 15