Using an image to give a pre-determined shape color and texture?

1 visualización (últimos 30 días)
Dan Groeneveld
Dan Groeneveld el 24 de Abr. de 2019
Comentada: Walter Roberson el 24 de Abr. de 2019
Hello I have a pre-written code that design a small square house. We are trying to give it "gingerbread" so i saved an image of the desired texture to my matlab and now I'm try to figure out how to merge the stuff together.
50,25,50,0,25,true,'y');
box(20,55,20,55,25,26,true,'y');
box(21,54,21,54,25,27,true,'y');
box(22,53,22,53,25,28,true,'y');
box(23,52,23,52,25,29,true,'y');
box(24,51,24,51,25,30,true,'y');
box(25,50,25,50,25,31,true,'y');
box(26,49,26,49,25,32,true,'y');
box(27,48,27,48,25,33,true,'y');
box(28,47,28,47,25,34,true,'y');
box(29,46,29,46,25,35,true,'y');
box(30,45,30,45,25,36,true,'y');
box(31,44,31,44,25,37,true,'y');
box(32,43,32,43,25,38,true,'y');
box(33,42,33,42,25,39,true,'y');
box(34,41,34,41,25,40,true,'y');
box(35,40,35,40,25,41,true,'y');
box(36,39,36,39,25,42,true,'y');
box(37,38,37,38,25,43,true,'y');
  2 comentarios
Dan Groeneveld
Dan Groeneveld el 24 de Abr. de 2019
I'm very new to Matlab so anything extra you can tell me to guide me along would be fantastic
Walter Roberson
Walter Roberson el 24 de Abr. de 2019
You appear to be using the third-party toolbox named Psychtoolbox . The Mathworks function "box" is called that way at all. Psychtoolbox provides its own texture routines. See http://peterscarfe.com/ptbtutorials.html

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Timing and presenting 2D and 3D stimuli en Help Center y File Exchange.

Productos


Versión

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by