Questions tagged [tiling]

Use this tag for questions about tessellations as well as figuratively the optimization technique of loop tiling.

166 questions
55
votes
8 answers

Tiled drawable sometimes stretches

I have a ListView whose items have a tiled background. To accomplish this, I use the following drawable xml:
benvd
  • 5,720
  • 5
  • 38
  • 59
26
votes
5 answers

Generalizing the algorithm for domino tiling?

In this earlier question the OP asked the following problem: Given a rectangular grid where some squares are empty and some are filled, what is the largest number of 2x1 dominoes that can be placed into the world such that no two dominos overlap…
templatetypedef
  • 328,018
  • 92
  • 813
  • 992
22
votes
3 answers

Mathematically producing sphere-shaped hexagonal grid

I am trying to create a shape similar to this, hexagons with 12 pentagons, at an arbitrary size. (Image Source) The only thing is, I have absolutely no idea what kind of code would be needed to generate it! The goal is to be able to take a point in…
15
votes
2 answers

Can I get a proper tiling window manager in KDE

I've been a bit conflicted about switching over to a tiling window manager. I made the switch a while ago and I really like it for some things but for other things I don't. So I ended up switching back to my trusty KDE. However, when switching…
StFS
  • 1,352
  • 2
  • 12
  • 27
14
votes
0 answers

Vim-like window manager

In my daily work I use a lot vim as my editor and the tiling window manager awesome. In my opinion both are great tools. What I don't like about awesome (and multiple other tiling window managers) are the unpleasant key-combinations like WIN+ANY…
lslah
  • 536
  • 6
  • 16
13
votes
3 answers

opengl, Black lines in-between tiles

When its translated in an integral value (1,2,3, etc....), there are no black lines in-between the tiles, it looks fine. But when it's translated to a non-integral (1.1, 1.5, 1.67), there are small blackish lines between each tile (I'm imagining…
MiJyn
  • 4,117
  • 4
  • 34
  • 58
12
votes
5 answers

String Tiling Algorithm

I'm looking for an efficient algorithm to do string tiling. Basically, you are given a list of strings, say BCD, CDE, ABC, A, and the resulting tiled string should be ABCDE, because BCD aligns with CDE yielding BCDE, which is then aligned with ABC…
João Silva
  • 81,431
  • 26
  • 144
  • 151
11
votes
2 answers

Tiling a Bitmap on a Canvas

I would like to create a 'graph paper' look to the Bitmap I am drawing via a Canvas, and trying to figure out the best way to do this. I can't pass a source Bitmap containing the graph paper background to the Canvas constructor, as I am getting the…
Paul Mennega
  • 10,049
  • 19
  • 67
  • 109
10
votes
4 answers

How to break an array into blocks

I have an array that represents points in a cuboid. It is a one dimensional array, which uses the following indexing function to realise the 3 dimensions: int getCellIndex(int ix, int iy, int iz) { return ix + (iy * numCellsX) + (iz * numCellsX…
JC2188
  • 307
  • 2
  • 17
9
votes
1 answer

Tiling images in android with ImageView in XML

I am trying to get an image on the background to tile until the background is full. My current code is:
user938787
9
votes
5 answers

Counting the ways to build a wall with two tile sizes

You are given a set of blocks to build a panel using 3”×1” and 4.5”×1" blocks. For structural integrity, the spaces between the blocks must not line up in adjacent rows. There are 2 ways in which to build a 7.5”×1” panel, 2 ways to build a 7.5”×2”…
MK1
  • 445
  • 1
  • 5
  • 8
9
votes
3 answers

Algorithm to fit windows on desktop (like tile)

I searching algorithm to solve problem like this: I have few windows, each window can be moved and re sized but with specified ratio between width and height, eg. 2:1 (height:width). Each window can't be on other window and all windows must be fully…
Svisstack
  • 15,015
  • 6
  • 59
  • 97
9
votes
1 answer

OpenLayers, Layers: Tiled vs. single tile

Each time we add a new layer to our OpenLayers based website (data provided primarily by a GeoServer server), we discuss whether to use a single-tile or a tiled approach. Some of the parameters we evaluate are the following: Using the tiled…
Chau
  • 5,378
  • 8
  • 59
  • 87
8
votes
2 answers

Building a matrix by merging the same row vector multiple times

Is there a matlab function which allows me to do the following operation? x = [1 2 2 3]; and then based on x I want to build the matrix m = [1 2 2 3; 1 2 2 3; 1 2 2 3; 1 2 2 3]
Simon
  • 4,681
  • 21
  • 63
  • 92
7
votes
5 answers

Different background color either side of page

I want to create a fixed-width layout where the background color on either side of the page is different, but with the background colours extending infinitely from either side of the page no matter how far you zoom out. For example, I'm not looking…
Jesse
  • 5,386
  • 3
  • 34
  • 39
1
2 3
11 12