Top "Shapes" questions

Questions related to drawing or defining shapes.

Offset shape within a ShapeDrawable

I'm trying to draw a rounded rectangle with a border around it using a class that extends ShapeDrawable (see here) …

android drawable shapes
D3 force directed graph, different shape according to data and value given?

I've made a force directed graph and I wanted to change shape of nodes for data which contains "entity":"company" …

javascript d3.js shapes force-layout
creating a rectangle from 2 specific points

I am trying to create a rectangle in Java but only with awt package classes. I can only click two …

java awt java-2d shapes
Finding intersection points of two ellipses (Python)

I'm writing a basic 2D shape library in Python (primarily for manipulating SVG drawings), and I'm at a loss for …

python geometry intersection shapes ellipse
Drawing on Video within C#

I am making an application that will allow users to apply certain tools to analyse videos & images. I need …

c# image video drawing shapes
Nested shapes in Android

I am trying to draw a shape that has three rectangular shapes: solid color gradient white line How do I …

android xamarin.android shapes android-shape
Create random shape/contour using matplotlib

I am trying to generate an image of a random contour using python but I couldn't find an easy way …

python matplotlib contour shapes bezier
Drawing with Java: Applying Borders/Outlines to Shapes

I can't figure out how to get "g.setStroke(new BasicStroke(5));" to be set to all my created shapes (in …

java drawing shapes stroke oval