border

webgl border color shader

心不动则不痛 提交于 2021-02-18 08:44:17
问题 How do I write a shader to draw a polygon in solid color and it's border in a different color. Basically I have a hexagons map in 3d and I need to be able to outline each hexagon with a black border, if user requests so. Would also be nice if I could control border width. Thanks. 回答1: Off the top of my head, one way would be to create a your hex with a 7th vertex in the center 1---2 /\ /\ / \ / \ 6----0----3 \ / \ / \/ \/ 5---4 Add texture coordinates where point 0 has UV = { 0, 0 } and

Fit image to border background

僤鯓⒐⒋嵵緔 提交于 2021-02-17 05:46:12
问题 may i know how can fit the image into the designed border? below are the code that i've done. <Border Grid.Row="1" BorderThickness="1" BorderBrush="LightGreen" Margin="20" CornerRadius="30"> <Border.Background> <LinearGradientBrush EndPoint="0.504,1.5" StartPoint="0.504,0.03"> <GradientStop Color="#F9FFF0" Offset="0"/> <GradientStop Color="#F3FFE2" Offset="0.567"/> </LinearGradientBrush> </Border.Background> <Image Source="/LBKIOSK;component/Resources/Images/Background/klhoho.jpg" Opacity="0

Tkinter - How can I remove the background borders from ttk.Button?

时光怂恿深爱的人放手 提交于 2021-02-11 06:35:35
问题 by default, the buttons from ttk module, have a one pixel border. how can I delete this border? below an example code: from tkinter import * from tkinter import ttk root = Tk() root.geometry("400x300") style=ttk.Style() style.configure("TButton", padding=0, background="#ffffff") # I colored the background border white to see it in the window.. but, I don't want it, I want to delete the border! MyButton = ttk.Button(root, text="I have a white border.. how can I delet it?") MyButton.place(x=16,

Remove Android app border with FireMonkey

て烟熏妆下的殇ゞ 提交于 2021-02-11 06:22:57
问题 I create an Android app with FireMonkey (10.2.2), but I don't understand why I have a top and right white border. I never added that to my app. I started to create an example app, just a black form with a black TRectangle without sides. I don't have to code anything, just design. When I compile for Windows, it's OK. I have this border only on Android. I get this result: You can download the example project here : Click Here to Download 回答1: I was having the exact same problem when adding a

How to add border to code blocks in generated beamer pdf from Markdown using Pandoc

浪子不回头ぞ 提交于 2021-02-10 14:13:46
问题 I've found how to add line numbers by writing, ```{.c .numberLines} int x = 1; int y = x; ``` But wonder how to add a border to the code blocks. 回答1: The "easiest" way to do this is to modify the default.beamer template and pass the --listings variable to pandoc during pdf creation. Take a look at the information for frames in the listings documentation: http://mirrors.ibiblio.org/CTAN/macros/latex/contrib/listings/listings.pdf 来源: https://stackoverflow.com/questions/23343233/how-to-add

How to add border to code blocks in generated beamer pdf from Markdown using Pandoc

孤者浪人 提交于 2021-02-10 14:10:58
问题 I've found how to add line numbers by writing, ```{.c .numberLines} int x = 1; int y = x; ``` But wonder how to add a border to the code blocks. 回答1: The "easiest" way to do this is to modify the default.beamer template and pass the --listings variable to pandoc during pdf creation. Take a look at the information for frames in the listings documentation: http://mirrors.ibiblio.org/CTAN/macros/latex/contrib/listings/listings.pdf 来源: https://stackoverflow.com/questions/23343233/how-to-add

How to add border to code blocks in generated beamer pdf from Markdown using Pandoc

ぃ、小莉子 提交于 2021-02-10 14:07:21
问题 I've found how to add line numbers by writing, ```{.c .numberLines} int x = 1; int y = x; ``` But wonder how to add a border to the code blocks. 回答1: The "easiest" way to do this is to modify the default.beamer template and pass the --listings variable to pandoc during pdf creation. Take a look at the information for frames in the listings documentation: http://mirrors.ibiblio.org/CTAN/macros/latex/contrib/listings/listings.pdf 来源: https://stackoverflow.com/questions/23343233/how-to-add

How to customize UISegmentedControl to change selected segment bottom border?

邮差的信 提交于 2021-02-08 07:32:48
问题 I want to customize UISegmentedControl like this image: 回答1: Use extension with this self.segmentController.customizeAppearance(for: 1) Call addBorder method and pass your UISegmentedControl as a parameter static func addBorder(_ uiSegmentControl: UISegmentedControl){ var upperBorder: CALayer = CALayer() upperBorder.backgroundColor = UIColor.init(red: 255.0, green:255.0, blue: 255.0, alpha: 1.0).cgColor upperBorder.frame = CGRect(x: 0, y: Int(ceil(uiSegmentControl.subviews[0].bounds.height))

Adding Border to the image using FFmpeg

∥☆過路亽.° 提交于 2021-02-08 05:44:35
问题 I wish to add a border to the single strip of images, using FFMPEG. I have been trying to search this thing on google, I tried this command ffmpeg -i input.jpg -vf "draw box= : x=50 : y=10 : w=104 : h=80 : color=white" output.jpg, I am unable to increase the border size as well as my desired color,Its work only black border.how can I increase the border and change the color to the single strip of images. Can anybody help me? 回答1: Adding border to an existing image is similar to add water mark

Curved line at the bottom of border in CSS

喜欢而已 提交于 2021-02-08 05:14:23
问题 I need this image in CSS and inside this border a background image needed. I have tried border-radius:0 0 50% 50%; -webkit-border-radius:0 0 50% 50%; But not getting the required shape. Any help would be appreciated. 回答1: With Border Radius: You can give the element a different border-radius value in the X and Y axis to obtain a curved bottom side with border and a background image. .curved-border { height: 200px; width: 400px; background: url(http://lorempixel.com/400/200/nature/1); border: