Questions tagged [shapes]

Questions related to drawing or defining shapes.

A shape is a geometric representation of some object, defined by the external boundaries which encompass the object.

For 2-D shapes like the circle, , and rectangle their shape is constructed of lines connected together.

3-D shapes are defined by a 2-D which envelopes the interior 3-D volume.

4362 questions
1
vote
1 answer

JFreeChart XYLineChart customise shape of nodes into rings

I have an XYLineChart and I want to customize the shape of nodes into rings. Like this: Here is the code how I try to done this: Ellipse2D bigCircle = new Ellipse2D.Double(-4, -4, 8, 8); Ellipse2D smallCircle = new…
KunLun
  • 3,109
  • 3
  • 18
  • 65
1
vote
4 answers

Rotate several shapes and keep the relation

I have several shapes that I want to rotate and keep the same distance between them. What's the best way to do that ? I was thinking to calculate the center of the rectangle that wraps the selected shapes and rotate the shaped compared to that…
Momo
  • 2,471
  • 5
  • 31
  • 52
1
vote
0 answers

Import textbox control information in xls file using .NET Core

I need to import a text, textbox name, position top and left and width and height of a textbox control from xls file in .NET Core application. I know how to do it with xlsx file, but I am struggling to find information about shapes in xls file…
1
vote
1 answer

Processing: PAppletClass causes loop, thus makes alpha dark

I'm using processing, just for test purposes in a trainings program. When I use fill(alpha) it becomes dark the more frames there are, since (I assume) Processing creates more and more of the shapes, overlapping everytime a bit more. After…
pikkuez
  • 310
  • 1
  • 18
1
vote
1 answer

Leaflet.draw - Fire an event when edition of a circle or polygon ends?

I'm using Leaflet.draw v1.0.3 Here is my basic scenario : I load all shapes (only polygons or circles) created previously by the user from my DB. These shapes are editable. However, I can't find an Edited or EditedComplete event, fired when edit…
AlexB
  • 7,302
  • 12
  • 56
  • 74
1
vote
2 answers

Saving triangle object in a list and paint again

I am trying to save the triangle I drew and draw again while the previous triangle is still there. I did this in rectangle, square, circle and ellipse and it worked. I don't know why it won't in Triangle. Is there something wrong in the code? This…
TerribleDog
  • 1,237
  • 1
  • 8
  • 31
1
vote
3 answers

Printing pattern in java like halfsphere

Trying to print pattern like half sphere below i have added actual output and expected output along with my code can anyone help how to do it. Thanks in advance My code public class PatternHalfSphere { public static void main(String[] args) { …
user9894645
1
vote
0 answers

SkShapeNode physicsbody weird behaviour

I created a subclass of SKNode: class SquareDrop: SKNode { init(image: SKSpriteNode) { super.init() self.setScale(0.3 //Set the starting position of the node self.position = CGPoint(x: 0.5, y:…
Edoardo
  • 657
  • 7
  • 24
1
vote
1 answer

iOS - Find white pixels/area enclosed by a black curve and create path

Using Swift methods touchBegan, touchMoved and touchEnded I save the touch points and than I draw a line using UIGraphicsGetCurrentContext() with methods beginPath(), move(to: Point), addLine(to: Point) and strokePath(). This line is repeated on 4…
ndr.hax
  • 345
  • 3
  • 13
1
vote
1 answer

Tensorflow tf.placeholder with shape = []

I am looking at a Tensorflow code that has learning rate input to the graph using placeholder with shape = [], as below: self.lr_placeholder = tf.placeholder(dtype=tf.float32, shape=[]) I looked at the official documentation page of Tensorflow…
1
vote
1 answer

Android drawable Shape corner

I have a question about the radius value inside the corners tag, what is this radius means actually? is there a center or what? sample xml:
FrankieWong
  • 53
  • 1
  • 7
1
vote
0 answers

Tensorflow: How do I structure datasets to find vector output?

I'm a Tensorflow Newbie. I am trying to find weight of holdings given value ratios for each holding. Ex) Input has 1000 stocks and each has three values : A, B, C. Output is weight for each stock, adding up to 1 There are 10 such datasets, each…
S. C
  • 11
  • 1
1
vote
3 answers

Android Layout Editor: How do I add a simple view?

The Layout Editor's palette doesn't seem to have a blank view that I can drag in (unless my eyes are crazy). Is there a way to drag a blank view from the palette in the Android Layout Editor onto the view I'm making (without having to type in the…
Xavier L.
  • 709
  • 5
  • 21
1
vote
1 answer

Can't insert picture in a spreadsheet using a link

I've written a script in vba which uses Url in column b and insert the image in column c right next to the url. The script works when I use this image link but it fails when I use this image link. How can make my script do the trick even when I use…
SIM
  • 21,997
  • 5
  • 37
  • 109
1
vote
1 answer

Tensorflow in Java: inferenceInterface.fetch convert to multi-dimension array

I am using a trained Tensorflow model in Java on Android. I am trying to extract the output of an intermediary op. The Tensor I am extracting has shape (150, 150, 256). I have declared the output target to be private float[]…
Andrew
  • 183
  • 1
  • 8
1 2 3
99
100