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
1
vote
1 answer

Apply Palette color to fab on pressed state

can someone give me a hint how I apply, a color generated by the Palette class, to a fab-button for the pressed state? I am using a Listener to get the generated colors as discribed here, I can apply the default-state background color in the public…
Nickolaus
  • 4,785
  • 4
  • 38
  • 60
1
vote
1 answer

Gnuplot: change automatic palette

I have 35 datasets and I plotted them in one chart using the following commands: set output 'NC_006509.fna.pdf' set xlabel "Position (kb)" set ylabel "Identity (%)" set size 1, 0.25 unset key set xrange [0:4000] set yrange [75:101] filename(n) =…
Fernando
  • 93
  • 1
  • 9
1
vote
1 answer

Eclipse EE Palette is not available

I am using Eclipse for Java EE developers (Luna). And I am trying to get a palette with the JSP/HTML controls to work for .jsp pages. However, in the Palette tab it says: A palette is not available. Even though I have a .jsp html page opened. Here…
Victor2748
  • 4,149
  • 13
  • 52
  • 89
1
vote
1 answer

How to use defined colors as a palette in R

I have following list of colors: ddf = structure(list(r = c(0.374, 0.374, 0.051, 0.096, 0.876, 0.415, + 0.596, 0.724, 0.847, 0.588, 0.481, 0.142, 0.819, 0.91, 0.969, + 0.887, 0.432, 0.927, 0.381, 0.04), g = c(0.183, 0.905, 0.662, + 0.706, 0.461,…
rnso
  • 23,686
  • 25
  • 112
  • 234
1
vote
2 answers

Tapestry: Events from Palette component

I'm using palette components on a page and I want the available elements in two of them to change depending on what is selected in the first. What is the best way to achieve this? Which events are thrown by the palette component, that I could listen…
martin
  • 2,150
  • 1
  • 34
  • 48
1
vote
1 answer

What would be a good algorithm to convert an image to a limited size color palette

I am trying to figure out an algorithm that would convert an image - 8 or 32 bit - to a limited palette of 3 or 4 custom colors (not grayscale). Is this possible ? I am trying to use C++ (but I could get it from other languages) It seems that Qt…
Thalia
  • 13,637
  • 22
  • 96
  • 190
1
vote
1 answer

How do I set my palette to grayscale in c++

I'm reading live feed from a mono camera and need to take a snapshot when pressing a button. So when I convert the pointer the camera passes me to a bitmap (8 bpp) for further image processing, the colors get all weird like this I'm guessing it's…
ThunderBalls
  • 137
  • 1
  • 1
  • 11
1
vote
1 answer

Android Palette in RecyclerView

Im planning to get every vibrant color from each bitmap in my RecyclerView and set it as a background to my text. so i tried the following : Picasso.with(ctx) .load(curs.getString(curs …
Fringo
  • 313
  • 5
  • 25
1
vote
0 answers

Palete for Eclipse Web Page Editor not showing HTML5

I have installed the eclipse Web Page Editor in Eclipse Helios R.2 but when I open a file with this editor I can see in the palete only HTML 4.0 items. Also they have no custom icon but a < > icon all of them. ¿How can I have HTML5 items on palete…
1
vote
2 answers

Palette in ListView Android with Picasso

I have a ListView and I'm playing with Palette from the support library. When on using BitmapFactory.decodeStream to generate a bitmap from a url, this throws an exception (Network on UI thread) or possibly very expensive. How do I make this…
chip
  • 1,779
  • 1
  • 22
  • 34
1
vote
0 answers

What does PIL's convert method exactly do with palette = Image.adaptive in python?

I used PIL library to write in python a prototype of the kmeans algorithm applied on an image. As initial centroids I used the first k colors that convert('P', palette=Image.ADAPTIVE, colors=N_CLUSTERS) extracts . I've already read convert's…
rocker
  • 77
  • 9
1
vote
1 answer

How To Resize AutoCAD Palette Set

Goal Resize the palette set on plugin start up so that it looks like so: Everything is correctly adjusted here and looks nice. This setup is saved when I close AutoCAD manually. Although, my goal would be to make the program make it start up like…
Alex
  • 4,821
  • 16
  • 65
  • 106
1
vote
1 answer

GNUPLOT cbrange setting

I am using gnuplot to plot a matrix with the following commands: ub = 1 lb = -ub set cbrange [lb:ub] set palette defined (lb "red", 0 "white", ub "blue) plot 'mydata.dat' matrix ind 19 with image This gives me a matrix which looks great. But I also…
FortCpp
  • 906
  • 2
  • 12
  • 28
1
vote
0 answers

How can I create an animated palette (color cycling) animation in FireMonkey?

An old-school graphics effect is palette animation, where for an image of (say) 256 colours, the palette that each color index of 0-255 refers to is shifted. As it shifts, the colours of each pixel change. You can read more about the technique here…
David
  • 13,360
  • 7
  • 66
  • 130
1
vote
1 answer

Apache POI 3.9 can not get HSSFPalette

I am using apache poi 3.9. I need to have a custom color in my excel. On the apache documentation and some other suggestions there is a code: Workbook wb = new HSSFWorkbook(); HSSFPalette palette = wb.getCustomPalette(); but Workbook does not have…
pms
  • 944
  • 12
  • 28