Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't add an outline to a text layer #236

Closed
Alkondr223322 opened this issue Aug 5, 2023 Discussed in #234 · 2 comments · Fixed by #239
Closed

Can't add an outline to a text layer #236

Alkondr223322 opened this issue Aug 5, 2023 Discussed in #234 · 2 comments · Fixed by #239
Assignees
Labels
priority:medium type:feature New feature or request

Comments

@Alkondr223322
Copy link

Discussed in #234

Originally posted by Alkondr223322 August 5, 2023
Hi, I'm looking for a way to add an outline to the text in the Movie to make it more visible

` const textLayer = new etro.layer.Text({

  startTime: startTime, 
  
  duration: durationStep, 
  
  text: sentence, 
  
  // x: 0, // default: 0 
  
  // y: 0, // default: 0 
  
  // width: 400, // default: null (full width) 
  
  // height: 400, // default: null (full height) 
  
  opacity: 1, // default: 1 
  
  //color: etro.parseColor('pink'), // default: new etro.Color(0, 0, 0, 1) randomColor({format: "rgba", alpha: 1}); 
  
  color: randomColor({format: "rgba", alpha: 1}), 
  
  font: '50px sans-serif', // default: '10px sans-serif' 
  
  textX: video[1]/2, // default: 0 
  
  textY: video[2] * 0.75, // default: 0 
  
  textAlign: 'center', // default: 'left' 
  
  textBaseline: 'alphabetic', // default: 'alphabetic' 
  
  textDirection: 'ltr', // default: 'ltr' 
  
  border: { // default: null (no border) 
    color: etro.parseColor('black'), 
    thickness: 10,
     
  }, 
  
  //background: etro.parseColor('red'), 
  
});`

I tried doing it by adding the border, but I don't see any changes. Am I setting the border wrong?

@clabe45 clabe45 added type:feature New feature or request priority:medium labels Aug 6, 2023
@FlandiaYingman
Copy link
Contributor

@clabe45
Are you currently working on it? If not, I am happy to deal with it.

@clabe45
Copy link
Collaborator

clabe45 commented Aug 6, 2023

Thanks, sounds great

FlandiaYingman pushed a commit to FlandiaYingman/etro that referenced this issue Aug 7, 2023
FlandiaYingman pushed a commit to FlandiaYingman/etro that referenced this issue Aug 13, 2023
FlandiaYingman pushed a commit to FlandiaYingman/etro that referenced this issue Aug 13, 2023
clabe45 pushed a commit that referenced this issue Aug 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority:medium type:feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants