Questions tagged [stencils]

Stencils are vector shapes of common user interfaces that can be reused for rapid prototyping.

References

69 questions
2
votes
1 answer

Implement an endless/infinite scroll Bigcommerce Stencil Category list

I'd like to know how to implement endless scrolling on big commerce stencil Framework on category page because some reason it's not showing pagination at the bottom of the category page. if it is possible with javascript then please suggest me how I…
R.K.Bhardwaj
  • 2,168
  • 1
  • 14
  • 24
2
votes
2 answers

How to sample a huge 2D array in Python using 2x2 arrays to create a dictionary? (Stencil Algorithm for Python)

I am rather new to programming, so I apologise if this is a classic and trivial question. I have a 100x100 2D array of values which is plotted by means of matplotlib. In this image, each cell has its value (ranging 0.0 to 1.0) and ID (ranging 0 to…
FaCoffee
  • 7,609
  • 28
  • 99
  • 174
2
votes
1 answer

OpenGL Stenciling, separating ref from value written?

The following code sets up the stencil test to see if ref is greater than the stored value in the stencil buffer, and if it is, it'll write ref to the stencil buffer unsigned int ref = 42; glStencilFunc(GL_GREATER, ref, 0xFF); glStencilOp(GL_KEEP,…
Anne Quinn
  • 12,609
  • 8
  • 54
  • 101
2
votes
1 answer

Roofline model - how to calculate flop/byte ratio?

I would like to create roofline model and i have problem with algorithm flop per byte ratio. Can You explain me how to calculate it? The algorithm do computation using 5-point stencil. Here's algorithm for(int i=1; i
JudgeDeath
  • 151
  • 1
  • 2
  • 9
2
votes
2 answers

How to utilize GL_ARB_stencil_texturing

From what I've read, to sample the stencil texture in the shader I need to set the GL_DEPTH_STENCIL_TEXTURE_MODE, so I did this: glTexParameteri(GL_TEXTURE_2D, GL_DEPTH_STENCIL_TEXTURE_MODE, GL_STENCIL_COMPONENTS); but I get an invalid enum... Why…
2
votes
1 answer

Add some (Master) Shapes to another (Master) Shape in Microsoft Visio 2013 x64 when add a (Master) Shape to the Page

I want to create a new Master Shape in the Microsoft Visio 2013 x64 like the Class Master Shape in the UML Class Stencil. When add the Class Master Shape to a page, it appends two Member and one Separator Master Shapes in itself automatically.…
MRS1367
  • 1,053
  • 1
  • 14
  • 40
2
votes
1 answer

How to hide visio shape group in stencil

I have a complex stencil with many small shapes (sheet.6 to 43), grouped in a group (sheet.44). There is also sub-groups in it. I want to hide this group using shapesheet formulas to use a user propertie. On a simple shape I would set…
Nicolas Thery
  • 2,319
  • 4
  • 26
  • 36
1
vote
1 answer

Making a shape act like a connector and snap to another shape. Visio

I'm pretty new to Visio but I'm trying to figure how I could possible design a stencil to snap to a connector marker on another stencil/shape. I have looked into actually editing the connector itself too see how its designed. I'm wondering If I…
Robit010
  • 63
  • 1
  • 8
1
vote
1 answer

Jest testcase for dropdown on 2nd item selection

I am trying to write testcase for dropdown which I have done in stenciljs. HTML