Questions tagged [curves]
129 questions
0
votes
1 answer
HTML5 Canvas bezier curves - background does not want to load
Is there anyone able to help me with the script? See jsfiddle.net/7QmSz/3.
HTML:
CSS:
#canvas
{
position: absolute;
left: 100px;
top:…

user2232150
- 3
- 1
0
votes
1 answer
free hand lines in Swing - get rid of bug "index out of bound Exception"
I have to draw lines by mouse in a JFRame.
Here is my method paintComponent:
public void paintComponent(Graphics g){
Graphics2D g2d = (Graphics2D) g;
if(pointCollection.get(0)!=null && pointCollection.get(pointCollection.size())!=null){
…

madalina c.
- 31
- 5
0
votes
1 answer
Generating Catmull Rom spline and returning garbage
After creating my Catmull Rom Spline such as:
vector3 SplineVector = newSpline.createCatmulRomSpline(vectorOne, vectorTwo, vectorThree, vectorFour, i);
However, when I read out the result from
vector3 SplineVector
I get garbage values.
Here is a…

GenericController
- 70
- 2
- 12
0
votes
1 answer
Photoshop-like Curves tool in Objective-C
I want to adjust an image like curves tool in photoshop. It changes image color, constrast, etc in each R,G,B channel or all RGB.
any idea to do this task in objective C?
I found this link…

Hai Hw
- 1,397
- 1
- 16
- 24
-1
votes
1 answer
R recalibrate curves to zero from gam
I have around 80 curves with this general form produced from gam smoothing using the package mgcv (this is dput for two curves):
curve1 = structure(c(7.49350131435014, 9.20913921518434, 10.897558273626, 12.5315396472817, 14.0838644937566,…

user2472414
- 131
- 11
-1
votes
1 answer
CSS: div with concave and convex angles
I have to create a div with this shape without using images.
The background has to be transparent, that's the problem...
Is it possible?
Best regards
see image here

EnricoBara
- 3
- 5
-1
votes
1 answer
How can I use a function to generate curves in OpenGL
I'd like to know how can I use these functions to generate curves in OpenGL:
x(t) = sin(t) + 1/2 sin(5t) + 1/4 cos(2,3t)
y(t) = cos(t) + 1/2 cos(5t) + 1/4 sin(2,3t)
It's a college exercise, I've done something with circles, but with curves I'm…

João Pedro
- 429
- 8
- 20
-2
votes
1 answer
matlab distance between two curves
I have two sets of x,y data. The plot of those data can be seen in figure below:
Let say, if the blue line is the reference, how can I calculate the distance between the blue line and the red line? To make it clearer, if the red line is behind the…

user3006147
- 81
- 1
- 6
-8
votes
1 answer
How to create curved-sided rectangles (as in picture) using CSS and HTML?
I need to apply CSS codes to buttons, divs, paragraphs, etc. making responsive curved sides that shrinks and expands automatically according to the content and doesn't get blurred.
I'd prefer a style to apply on as many elements as possible with…

Abdullah Abolwafa
- 11
- 2