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
3
votes
1 answer

Gnuplot: Set palette colours for absolute values

I plot a 2D function using splot with a colour palette: set zrange [0.5:1.5] set palette defined ( 0 "green", 1 "black", 2 "red" ) splot "HTSG_PeakPositions_thetaI080.gnuplot" using 3:1:5 title 'Relative Peak Positions' with pm3d This somehow…
ivokabel
  • 186
  • 4
  • 12
3
votes
2 answers

How to read 8-bit PNG image as 8-bit PNG image only?

I have a 8-bit PNG image (See the attachment). But when I read it using Image.FromFile method, the pixel format comes as 32-bit. Due to this I am unable to modify the palette. Please help me. See below for the code I am using to read the file and…
3
votes
2 answers

gnuplot smooth frequency with conditional formatting

Creating a normiles stack diagram works perfectly fine, now I want to use a different color for the boxes fitting in a specific range. For this, I adopted the following: set palette maxcolors 2 set palette defined ( 0 '#C0504D', 1 '#00B059') plot…
significant
  • 153
  • 7
3
votes
1 answer

How to generate 256 color palette for Linux terminal in HTML/jquery

I wish to generate the color palette used by the Linux terminal on a website. I've seen a few examples of the palette used by the Linux terminal, as demonstrated by this website…
Nate Rubin
  • 752
  • 1
  • 7
  • 12
3
votes
1 answer

How to display tooltip (title) of option text in Tapestry 5.3.6 palette component upon mouseover?

Is it possible in Tapestry 5.3.6 display tooltip (title) in palette component if the option text is too long to be displayed? I am interested in cases where option texts are almost identical, but they differ in last characters which are not visible.
MartinC
  • 546
  • 11
  • 26
3
votes
2 answers

Javascript/ExtendScript/ScriptUI temporary window message

This should be relatively simple. While writing a script for Adobe InDesign CS6, I'd like to have a window/palette appear briefly—say, about two seconds— to notify the user that the end of the script was reached successfully. How can I go about…
Sturm
  • 689
  • 2
  • 23
  • 52
3
votes
10 answers

Empty Netbeans 7 palette? How to restore it?

I use Netbeans 7 on Kubuntu 12.04. I start Netbeans like this: netbeans --cp:a /usr/share/java/xercesImpl.jar & cause of known issue with Netbeans and Kubuntu 12.04. In the middle of my project my palette with Swing components just ..…
mazix
  • 2,540
  • 8
  • 39
  • 56
3
votes
1 answer

Get the data (palette indices) of an indexed image

How can I access the image data (array of palette indices) of an indexed image (png8 or gif)? Example: Image palette: {0xFF0000, 0x00FF00, 0x0000FF} Image data: {0,1,1,0,1,2,2,2,0,1,0,2,0,1,1,0} What I need is: ArrayList getImageData(File…
Aoshi
  • 53
  • 4
3
votes
2 answers

OpenGL Palette Swap shader?

I'm coding a fighting game in which each character has a great number of sprites, and each character has several different palette swaps. I've been trying to use a grayscale texture for each sprite, and a 256x1 texture for each palette. My shaders…
2
votes
1 answer

how to enable nebula widgets in designer's palette of Eclipse Indigo

I've just configured Eclipse Indigo(for RCP) in Ubuntu 11 and everything is fine with it as compared to my previous IDE Eclipse Helios(for RCP) except one thing : that is I installed all nebula widgets from their installation repo :…
yayayokoho3
  • 1,209
  • 2
  • 16
  • 40
2
votes
1 answer

gnuplot : plot function using palette/gradient linecolor : seems uniform, not gradient

What does gnuplot need to plot the line of a function** using the palette linecolor i.e. as a gradient? (I tried terminal wxt 0 enhanced and svg, but will try more)? The documentation says palette is "used to color pm3d surfaces, heat maps, and…
2
votes
1 answer

How to specify the palette in a seaborn figure-level plot

I've learned to not use seaborn if I need to make specific changes or detail oriented visualizations but I feel like I'm not fully utilizing what it has to offer at times. I have a series of 2D slices plotting cluster memberships. Issue is between…
Jaynkumz
  • 23
  • 1
  • 6
2
votes
1 answer

Getting a Mathematica Menu Bar on Linux

The Linux front end of Mathematica (8.0.1.0) does not seem to have a Menu Bar which is apart from any given notebook. In any Windows front end I have used, there is a standalone Menu Bar which contains the usual: "File, Edit, Insert, Format, Cell,…
Michael
  • 21
  • 1
2
votes
1 answer

plotly subplot lines with same color

I have some time series data across multiple categories, where each category has a subset of a group of products and I want to plot them in a plotly subplot so each product line has the same color. How do I do this? I have tried specifying a palette…
zimia
  • 930
  • 3
  • 16
2
votes
1 answer

Make the display 8 bit and set palette

I have an 8-bit colour depth surface and some 8-bit colours, and I set the surface up like this: self.surf = pygame.Surface((SCREEN_WIDTH, SCREEN_HEIGHT)).convert(8) self.surf.set_palette(self.colours) I tried to make the display 8-bit so I…
marienbad
  • 1,461
  • 1
  • 9
  • 19