Does anyone know of a way to control the font size/color/weight of the row and column names when plotting a correspondence plot with the ca package?
The following code will produce a very nice looking chart, though if there were more attributes (very heavy, super heavy, something more than super heavy) or more classes of workers (peons,...
Hi guys, i'm looking for "graphics elements" like sprite of cars, human movement etc. using for a game open source made with pygame.
Anyone know if exists a web site providing this service ?
Thank you and regards
...
In my algorithm i need create information output. I must to write boolean matrix in bmp file.
It must be monocromic image, where pixel is white if matrix on such element is true.
Main problem is bmp header and how to write this.
Thanks.
...
Right now, I have more than 25 vertices that form a model. I want to interpolate color linearly between the first and last vertex. The Problem is when I write the following code
glColor3f(1.0,0.0,0.0);
vertex3f(1.0,1.0,1.0);
vertex3f(0.9,1.0,1.0);
.
.`<more vertices>;
glColor3f(0.0,0.0,1.0);
vertex3f(0.0,0.0,0.0);
All the vertices exc...
Hi everyone,
I was expecting gl_Position to automatically get homogenized (divided by w), but it seems not working.. Why do the followings make different results?
1)
void main() {
vec4 p;
... omitted ...
gl_Position = projectionMatrix * p;
}
2)
... same as above ...
p = projectionMatrix * p;
gl_Position = p / p.w;
I think ...
I want a create a bitmap of size 160*160 and split it four squares and each square to filled with one color how to do
...
Hey guys,
I'm trying to find a way to use the original Apple system buttons and icons in a web site.
Is there a way to get these original graphics in png format?
There are not-so-nice ways to obtain them of course. Two I was thinking of:
Save them from this link, then convert to png.
Take screen captures on the iPhone itself, and ...
Yersterday I was trying to create a text editor in c. but i am facing a problem with the backspace character. and when i am trying to print this with outtextxy a strange character is appearing.
i tried following code for this backspace:
str[2]="\b ";
outtextxy(x,y,str);
This is working fine under textmode but not working under graphic...
I create a bitmap from bytes coming via the web and when I downsample it, the resulting Jpeg is still too big even though I use small pixel format.
Does someone know how to manipulate the compression of the image? I had the impression that the saved image is no longer compressed.
...
Could you advise me for a C# graphics programming book about intersection 3D surface and 2D plane.
...
I am profiling my BlackBerry application (a game) with the options 'In method only' and 'Time including native method'. Under the 'All methods' node (after a decent run of the game) the single most time consuming function is Graphics.updateDisplay0() with over 50% of the run time spent there.
I don't quite know what is the purpose of th...
Hello. How could I make an image graph from values in a database? The idea came from "Steam", which uses a graph to show how many users are online. How could I do the same thing? It seems like the graph is one whole image; not made up of parts. Here's an image of the graph from Steam:
Thanks.
...
I need to display 480 x 320 background image in OpenGL ES. The thing is I experienced a bit of a slow down in iPhone when I use 512 x 512 texture size. So I am finding an optimum case for rendering iPhone resolution size background in OpenGL ES. How should I slice the background in this case to obtain the best possible performance? My ma...
hi
i just finished essential part of my own personal 2d engine in c++ and i'm kinda deciding how to complete the part where it is actually supposed to display everything on the screen, namely when do I call that function which does the job. I don't have much idea of how does the graphic card work, my biggest experience is calling bios g...
I'm currently developing a simple 2D game for Android. I have a stationary object that's situated in the center of the screen and I'm trying to get that object to rotate and point to the area on the screen that the user touches. I have the constant coordinates that represent the center of the screen and I can get the coordinates of the...
There are plenty of 'pretty-printing' visualization libraries for Javascript. E.g. those listed here.
Googling for 'python visualization libraries' only turns up stuff like VTK and mayavi, which are primarily more for no-nonsense scientific use.
So, do you know of any Python libraries similar to those Javascript ones in the above link?...
For my problem it would be best to find a numeric representation of kazakh national ornaments for generating new ones. But other approaches are also fine.
The ornaments essentially consist of combinations of relatively basic ornaments. Usually the ornaments are symmetrical.
Here are few examples of basic elements:
(The images ...
I'm trying to create an image with some text on it and I want the image's size to match the size of the rendered text.
When I use System.Windows.Forms.TextRenderer.MeasureText(...) to measure the text, I get dimensions that include font padding. When the text is rendered, it seems to use the same padding.
Is there any way to determin...
Hi all
i want to crop a part of Image ,for that i am using following code:
int x=20;
int y=50;
int [] rgbdata=new int[(0+width-x+height-y)* (image.getWidth())];
image.getARGB(rgbdata, 0, image.getWidth(), x, y, width, height);
cropedImage=new Bitmap(image.getWidth(),image.getWidth());
cropedImage.setARGB(rgbdat...
My form has a group box which contains two overlapping rectangles. The form's other controls are two sets of four numeric up down controls to set the rectangles' colors. (nudF1,2,3 and 4 set the rectangle that's in front, and nudB1,2,3 and 4 set the rectangle that's behind.) Everything works fine, except that the rectangles do not disp...