1,382 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
56
views
Is there a good way to cut out the "unnecessary" segments of my Paper.js path when connecting multiple paths at specific angles?
Here are some examples to visualize the problem
The blue circles show the segments that I want to remove so that I have a "real" connection between the two rectangles.
This problem occurs ...
3
votes
1
answer
86
views
matplotlib.patches.Rectangle produces rectangles with unequal size of linewidth
I am using matplotlib to plot the columns of a matrix as separate rectangles using matplotlib.patches.Rectangle. Somehow, all the "inner" lines are wider than the "outer" lines? ...
0
votes
1
answer
120
views
Translating rectangle coordinates to screen coordinates for screen capture [duplicate]
I am working on creating a screen capture app in C# using WPF, where the user can draw a rectangle on the screen, and the app captures the content behind that rectangle, similar to the Windows ...
0
votes
2
answers
438
views
How to Create a Rectangle in SwiftUI that Extends width According to the Number of Lines of Text within, swiftui (Similar to Wrap Content in uikit)
working on a SwiftUI project where I need a blue rectangle to adjust its ** width** based on the number of lines of text it contains, specifically not dynamically, but based on a fixed number of lines ...
0
votes
1
answer
1k
views
How to Create a Shadow in SwiftUI Only at bottom [closed]
I'm trying to create a shadow effect in SwiftUI that only appears beneath the lower half of a rectangle.
Current Code:
struct ContentView: View {
var body: some View {
Rectangle()
...
2
votes
1
answer
79
views
Find which equally-sized square contains a given coordinate
The problem
I'm working on an image-processing library that divides an image and analyses it part by part.
I have an image of a given height H and width W (in pixels), and want to divide it by a ...
2
votes
1
answer
284
views
How to fit rectangles over a point cloud distributed in a plane?
We have a point cloud which has points which lie in the same plane. They are distributed similar to the red dots in the image below, we want to fit rectangles denoted by the yellow boxes. These ...
0
votes
1
answer
38
views
How to stack round rectangles so that they are embedded within each other, in flutter
I have corner rounded rectangles, which I want to stack as follows. Each tile musk be linked to the next one whit the color of the one below.
I can't find exactly what I want, that is to say how to ...
1
vote
2
answers
113
views
Sums over overlapping rectangular slices of a 2D array
I need to calculate multiple sums, each sum being over an axis oriented rectangular slice of a 2D array. Many of the slices will overlap, and therefore there will be many shared terms in the sums. To ...
2
votes
1
answer
49
views
CSS cube overlay
Hi there, to reproduce this
:root{
--black: rgb(11, 14, 17);
--green: rgb(112, 228, 80);
--gray: rgb(55, 55, 55);
}
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
...
1
vote
1
answer
430
views
How to fill rectangles in my PowerApps project?
I'm working on a project in PowerApps and I need help with one functionality. On one screen, I have a container containing 8 rectangles, below which there is a button. I want the rectangle to be ...
2
votes
1
answer
58
views
Looking for an approach to finding the minimum number of rectangles necessary in order to fill the occupied area of a 2D matrix?
I'm trying to reduce the number of objects that need to be rendered in order to fill only the occupied cells of a 2D matrix. Each cell's occupancy is binary, and the matrix extents can reach up to 512 ...
1
vote
1
answer
429
views
using powershell windows forms create a listview with Multi Line Headers
I need a listview that can support a Column header with two lines of text.
I have spent a lot of time trying to use add_DrawColumnHeader to create that 2nd line.
I have no issues creating it in c# but ...
0
votes
1
answer
46
views
FlxRect.getRotatedBounds not getting hitboxes correctly?
I'm making an Undertale damage system but I just can't get it right. What is wrong in this code?
blaster and soul are FlxSprites.
var point1:FlxPoint = FlxPoint.weak(blaster.x, blaster.y + 104 * ...
0
votes
1
answer
195
views
How to find the inner half area of a rectangle
I have a rectangle, for example width x height = 200 x 100cm. Thus, it has an area of 20,000cm2. The lower left corner has the coordinate (0,0) and the upper right corner has the coordinate (200,100).
...