# PopupMenu items textSize

**URL:** https://discourse.processing.org/t/popupmenu-items-textsize/26111
**Category:** Processing for Android
**Created:** [December 10, 2020, 12:36pm UTC](https://discourse.processing.org/t/popupmenu-items-textsize/26111 "2020-12-10T12:36:50Z")
**Posts on this page:** 20
**Page:** 2

<div class="post-metadata">

### Author: ![paturn](https://avatars.discourse-cdn.com/v4/letter/p/34f0e0/32.png) [@paturn](https://discourse.processing.org/u/paturn)
#### Post date: [December 13, 2020, 7:18pm UTC](https://discourse.processing.org/t/popupmenu-items-textsize/26111/21 "2020-12-13T19:18:17Z")

</div>

@noel  
The library includes peasy.jar and controlP5.jar, the most important one being the former.

Regards  
Peter Turner

---

<div class="post-metadata">

### Author: ![paturn](https://avatars.discourse-cdn.com/v4/letter/p/34f0e0/32.png) [@paturn](https://discourse.processing.org/u/paturn)
#### Post date: [December 13, 2020, 7:21pm UTC](https://discourse.processing.org/t/popupmenu-items-textsize/26111/22 "2020-12-13T19:21:43Z")

</div>

@noel  
I have tried the peasy.jar file converted with the dex facility in APDE, a d stored in library-dex folder as described on the net.

---

<div class="post-metadata">

### Author: ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)
#### Post date: [December 13, 2020, 9:22pm UTC](https://discourse.processing.org/t/popupmenu-items-textsize/26111/23 "2020-12-13T21:22:38Z")

</div>

> [@paturn](#):
>
> The library includes peasy.jar

Do you mean the peasyCam library? I don’t think that this one works on Android. For simple 3d rotation, I use code like posted on [this link](https://discourse.processing.org/t/creating-a-structure-of-linked-tetrahedra/16955/8).

---

<div class="post-metadata">

### Author: ![paturn](https://avatars.discourse-cdn.com/v4/letter/p/34f0e0/32.png) [@paturn](https://discourse.processing.org/u/paturn)
#### Post date: [December 13, 2020, 9:49pm UTC](https://discourse.processing.org/t/popupmenu-items-textsize/26111/24 "2020-12-13T21:49:38Z")

</div>

@noel. It works well on Processing for Android. Does that mean it should work on APDE?

---

<div class="post-metadata">

### Author: ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)
#### Post date: [December 13, 2020, 11:08pm UTC](https://discourse.processing.org/t/popupmenu-items-textsize/26111/25 "2020-12-13T23:08:08Z")

</div>

> [@paturn](#):
>
> Does that mean it should work on APDE?

It should work, but actually, I never got it working on APDE, but I tried again and build the necessary dex jars. The examples compile, and the cubes are drawn, but they do not rotate. In the console I get the error :

> java.lang.NoSuchFieldError: No field mouseButton of type I in class Lprocessing/core/PApplet; or its superclasses (declaration of ‘processing.core.PApplet’ appears in base.apk) at peasy.PeasyCam$PeasyEventListener.mouseEvent

You can download it [here](https://drive.google.com/file/d/1WpMWhBqFpofCC0menAYBl6XX-v8_OimV/view?usp=sharing) if you want to try. Just unzip it in the sketchbook/libraries folder.  
The difference between versions is that the latest processing for android mode is 4.1.1 while APDE still uses 4.0. But I don’t know if this would give the error. I don’t know if @calsign the author of APDE has the time to look into this.

---

<div class="post-metadata">

### Author: ![paturn](https://avatars.discourse-cdn.com/v4/letter/p/34f0e0/32.png) [@paturn](https://discourse.processing.org/u/paturn)
#### Post date: [January 3, 2021, 3:37pm UTC](https://discourse.processing.org/t/popupmenu-items-textsize/26111/26 "2021-01-03T15:37:36Z")

</div>

Hello Noel, and a Happy New Year to you.

I’ve almost completed my current project. Thank you for your invaluable help.

I am now looking at a similar, related project. I have a video of a flat earth map which I would like to convert to an interactive 3D globe while the video is running (or paused).

Is this possible in Processing (for Windows and/or Android)?

Regards  
Peter Turner

---

<div class="post-metadata">

### Author: ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)
#### Post date: [January 3, 2021, 3:45pm UTC](https://discourse.processing.org/t/popupmenu-items-textsize/26111/27 "2021-01-03T15:45:39Z")

</div>

> [@paturn](#):
>
> I have a video of a flat earth map which I would like to convert to an interactive 3D globe while the video is running (or paused).

I am not sure what you want. You want to place a texture of a world map on a globe, and rotate it with mouse or touch, similar to Google Earth?

---

<div class="post-metadata">

### Author: ![paturn](https://avatars.discourse-cdn.com/v4/letter/p/34f0e0/32.png) [@paturn](https://discourse.processing.org/u/paturn)
#### Post date: [January 3, 2021, 4:00pm UTC](https://discourse.processing.org/t/popupmenu-items-textsize/26111/28 "2021-01-03T16:00:31Z")

</div>

Yes Noel, but with an mp4 video instead of individual jpg images.

Regards  
Peter Turner

---

<div class="post-metadata">

### Author: ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)
#### Post date: [January 3, 2021, 4:03pm UTC](https://discourse.processing.org/t/popupmenu-items-textsize/26111/29 "2021-01-03T16:03:27Z")

</div>

> [@paturn](#):
>
> images

images? A texture uses just one. Can you give me a link of an existing video on the net, about your plan?

---

<div class="post-metadata">

### Author: ![paturn](https://avatars.discourse-cdn.com/v4/letter/p/34f0e0/32.png) [@paturn](https://discourse.processing.org/u/paturn)
#### Post date: [January 3, 2021, 4:14pm UTC](https://discourse.processing.org/t/popupmenu-items-textsize/26111/30 "2021-01-03T16:14:36Z")

</div>

Regards  
Peter Turner

---

<div class="post-metadata">

### Author: ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)
#### Post date: [January 3, 2021, 4:17pm UTC](https://discourse.processing.org/t/popupmenu-items-textsize/26111/31 "2021-01-03T16:17:18Z")

</div>

@paturn === Here you have an example of a video texture on a globe.  
Is it that you want is to change a fragment of a video when you click on a certain coordinate?  
The video used here you can find in Processing’s video examples.

```auto
PShape globe;
import processing.video.*;
import peasy.*;

Movie myMovie;
PeasyCam cam;
 
void setup() { 
  size(600, 600, P3D);
  cam = new PeasyCam(this, 400);
  myMovie = new Movie(this, "transit.mkv");
  myMovie.loop();  
  globe = createShape(SPHERE, 200); 
  globe.setTexture(myMovie);
  noStroke();
}
 
void draw() { 
  background(0);
  shape(globe);
}

void movieEvent(Movie m) {
  if (myMovie.available()) m.read();
}

```

---

<div class="post-metadata">

### Author: ![paturn](https://avatars.discourse-cdn.com/v4/letter/p/34f0e0/32.png) [@paturn](https://discourse.processing.org/u/paturn)
#### Post date: [January 3, 2021, 5:56pm UTC](https://discourse.processing.org/t/popupmenu-items-textsize/26111/32 "2021-01-03T17:56:09Z")

</div>

Hi Noel

My battery was flat, hence the delay.

Your email account wouldn’t accept my local video, and the source wouldn’t provide the link, so I’ve attached a much smaller video.

Regards  
Peter Turner

(Attachment ContinentalDrift11.mp4 is missing)

---

<div class="post-metadata">

### Author: ![paturn](https://avatars.discourse-cdn.com/v4/letter/p/34f0e0/32.png) [@paturn](https://discourse.processing.org/u/paturn)
#### Post date: [January 3, 2021, 6:03pm UTC](https://discourse.processing.org/t/popupmenu-items-textsize/26111/33 "2021-01-03T18:03:19Z")

</div>

I can’t send an mp4 file to your account, and the source won’t allow access to the link.

It is a flat map showing tectonic movement over time, and I wish to project that on an interactive globe.

Regards  
Peter Turner

---

<div class="post-metadata">

### Author: ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)
#### Post date: [January 3, 2021, 6:34pm UTC](https://discourse.processing.org/t/popupmenu-items-textsize/26111/34 "2021-01-03T18:34:06Z")

</div>

> [@paturn](#):
>
> It is a flat map showing tectonic movement over time, and I wish to project that on an interactive globe.

I still don’t get where the videos will be placed. I am trying to play multiple videos on a single texture. Something that isn’t possible on a SPHERE object, but I can create a sphere out of vertexes, so I believe that it is possible.

---

<div class="post-metadata">

### Author: ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)
#### Post date: [January 3, 2021, 6:40pm UTC](https://discourse.processing.org/t/popupmenu-items-textsize/26111/35 "2021-01-03T18:40:15Z")

</div>

> [@paturn](#):
>
> Your email account wouldn’t accept my local video,

Don’t you have a Google Drive account or alike? I use public shared links all the time.

---

<div class="post-metadata">

### Author: ![paturn](https://avatars.discourse-cdn.com/v4/letter/p/34f0e0/32.png) [@paturn](https://discourse.processing.org/u/paturn)
#### Post date: [January 3, 2021, 6:47pm UTC](https://discourse.processing.org/t/popupmenu-items-textsize/26111/36 "2021-01-03T18:47:08Z")

</div>

No. Just a single video made up of moving tectonic plates on the texture.

It sounds feasible. Is it?

Regards  
Peter Turner

---

<div class="post-metadata">

### Author: ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)
#### Post date: [January 3, 2021, 6:50pm UTC](https://discourse.processing.org/t/popupmenu-items-textsize/26111/37 "2021-01-03T18:50:28Z")

</div>

Have you tried the code above with this video?

---

<div class="post-metadata">

### Author: ![paturn](https://avatars.discourse-cdn.com/v4/letter/p/34f0e0/32.png) [@paturn](https://discourse.processing.org/u/paturn)
#### Post date: [January 4, 2021, 12:56pm UTC](https://discourse.processing.org/t/popupmenu-items-textsize/26111/38 "2021-01-04T12:56:49Z")

</div>

I can’t find the video to which you refer.

Can you explain where it is?

---

<div class="post-metadata">

### Author: ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)
#### Post date: [January 4, 2021, 1:02pm UTC](https://discourse.processing.org/t/popupmenu-items-textsize/26111/39 "2021-01-04T13:02:27Z")

</div>

> [@noel](#):
>
> ` myMovie = new Movie(this, "transit.mkv");`

Instead of this video, that you can find in the libraries example sketches of the Processing’s IDE, use your video, placed in the sketch data folder, and use the code I posted above.

---

<div class="post-metadata">

### Author: ![akenaton](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@akenaton](https://discourse.processing.org/u/akenaton)
#### Post date: [January 6, 2021, 5:27pm UTC](https://discourse.processing.org/t/popupmenu-items-textsize/26111/40 "2021-01-06T17:27:39Z")

</div>

@noel, @paturn ===  
i dont agree with this post where 2 questions very different appear, first one about text size in a pop menu second one about texture and sphere (and libraries); if the first question was answered (i think no…) put answered for the answer, if not leave the post; as for textured sphere open a new topic.  
As for the first question (textSize) @ paturn is right= with a popMenu you have poor solutions to change it; but you can solve that using the toolBar fromAndroid; if it has some interest i can put code for that…

[Previous page](https://discourse.processing.org/t/popupmenu-items-textsize/26111.md?page=1)

[Next page](https://discourse.processing.org/t/popupmenu-items-textsize/26111.md?page=3)
