graphics Questions
4
Solved
How is Graphics.Save different from Graphics.BeginContainer?
4
Solved
I would like to plot some different data items using ggplot2, using two different colour scales (one continuous and one discrete from two different df's). I can plot either exactly how I would like...
2
Solved
Are there any relatively easy ways to deal with SVG images in .NET?
How to extract all graphic primitives from file.
How to render a SVG file to memory buffer (with transparency)
P.S.
I'm using...
4
Solved
I was following the vulkan tutorial at https://vulkan-tutorial.com/ and at the depth buffering chapter, the author Alexander Overvoorde mentions that "We only need a single depth image, because onl...
1
I'm trying to make my own game engine for learning purposes, but I'm also trying to make something that is optimized and is capable of handling a diverse amount of cross-platform games.
That said...
Duley asked 30/9, 2019 at 16:54
2
Solved
Code:
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import javax.swing.JFrame;
public class TextRectangle ext...
13
Solved
I'm trying to put some graphics on a web page and at my prototype at the computer it's all working fine at the localhost. But now I uploaded the files to a server and I'm having a problem to plot s...
4
In biology we often want to plot dose response curves. The R package 'drc' is really useful and base graphics can easily handle 'drm models'. However, I would like to add my drm curves to a ggplot2...
1
Solved
I am investigating the new pattern functionality of grid. So far, I can cross-hatch a rectangle:
library(grid)
# Note that using absolute coordinates like "cm" for
# x and y does not wor...
2
Solved
Several functions in R's base graphical system, including rect() and polygon(), support cross-hatching via their angle= and density= arguments:
x = c(0, 0.5, 1, 0.5)
y = c(0.5, 1, 0.5, 0)
par(mar=...
4
Solved
I have to make 2d triangles from a list of 2d points with a condition: length of any edge can't be longer than a predefined constant.
Something like this:
Do you know any algorithm that can do t...
4
Solved
In the past I've saved RGB images (generated from physical simulations) as 8-bits/channel PPM or PNG or JPEG.
Now I want to preserve the dynamic range of the simulation output, which means saving ...
Carpal asked 8/3, 2009 at 17:14
2
Solved
In R, it seems none of the currently available options (e.g. image) allow for fast real-time display of 2D raster graphics. I was interested for example to make a real-time interactive Mandelbrot v...
8
Solved
What's a fast way to test if 2 rectangles are intersecting?
A search on the internet came up with this one-liner (WOOT!), but I don't understand how to write it in Javascript, it seems to be wri...
Boudoir asked 2/5, 2010 at 3:32
3
Solved
So I use Canvas.drawText to draw some string on a Canvas. The issue is that I want to draw a rectangle before it so that the text appears centred onto the rectangle. But I hit a real problem. The s...
Fukien asked 11/6, 2011 at 17:35
2
Solved
In my attempts to practice Julia, I've made a program which draws a bifurcation diagram. My code is as follows:
function bifur(x0,y0,a=1.3,b=0.4,n=1000,m=10000)
i,x,y=1,x0,y0
while i < n &...
6
Solved
Is there any way to recognise pen pressure using javascript.
Preferably I don't want to make any use of Flash and try get this done as pure JS.
EDIT: okay I realised that it is kind of possible fo...
Contiguous asked 8/5, 2012 at 22:14
8
Solved
I wonder if it is possible to plot pca biplot results with ggplot2. Suppose if I want to display the following biplot results with ggplot2
fit <- princomp(USArrests, cor=TRUE)
summary(fit)
bipl...
5
Solved
I'm trying to write an application that can be used to create pictures that look like paintings using simulated brush strokes. Are there any good sources for simple ways of simulating brush strokes...
2
I came across this FxAA shader that does anti-aliasing and seems to be working quite well.
But, Somehow could not understand the logic. Can someone explain?
[[FX]]
// Samplers
sampler2D buf0 = s...
3
Solved
Are there any "standard" algorithms for drawing thick antialiased lines? I have found Xiaolin Wu's algorithm for drawing 1px width lines, but have yet to find any extension for thicker lines.
2
Solved
I'm developing a grid based game in pygame, and want the window to be resizable. I accomplish this with the following init code:
pygame.display.set_mode((740, 440), pygame.RESIZABLE)
As well as th...
2
Solved
I'm trying to understand these two methods of the Bitmap or Image. One being .SetPropertyItem() and the other being .GetPropertyItem().
I'm completely confused as to the way the documentation says...
Mabellemable asked 16/9, 2013 at 4:41
42
Solved
I'm trying to create a fast 2D point inside polygon algorithm, for use in hit-testing (e.g. Polygon.contains(p:Point)). Suggestions for effective techniques would be appreciated.
Madelina asked 20/10, 2008 at 5:20
7
Solved
I have an array of around 200 colours in RGB format. I want to write a program that takes any RGB colour and tries to match a colour from the array that is most "similar".
I need a good definition...
Istic asked 5/11, 2009 at 5:8
© 2022 - 2025 — McMap. All rights reserved.